Cosmic Console Client / Discord Bot - Buffers/Output/Commands and Mo

Discussion in 'Off-Topic Discussion' started by FallingAngel, Feb 19, 2018.

  1. FallingAngel

    FallingAngel Well-Known Member
    <= Beta Tester => Merchant Hero Tropico Squire Spirit Witcher Scorcher Acolyte -= Executioner + =- -= Guardian + =- Buccaneer FlowerKing -= Archmage + =- Glacier General CactusKing

    Joined:
    Oct 12, 2015
    Messages:
    2,664
    Likes Received:
    92
    IGN:
    FallingAngel
    Planet:
    Quit
    Faction:
    Quit
    This is not new, I know, so before all you kids in chat be like, pshawwww had this for years. Congrats. @DragonSlayer0825 asked me to make him one, and I haven't seen a decent free available bot that can do the following:

    - Console Client 24/7 afking

    - Moderate when you need to check buffers and keep a track of who's checking

    - Watch Your Controlled outpost and receive INSTANT notifications when its being taken

    - Gather Ingame Information and relay it to Discord

    - Keep a Track of F Logs Privately (Including information likes Cf's - not currently in Ingame F logs)

    - Watch Factions For Online Members and Log their Down Times

    ********************************************************************************************
    This Bot is completely legal, as its only functions by watching chat and grabbing text that appears. There is no Server Based interaction in the sense of Raid Detectors.

    Key Notes!

    This bot is made for windows, im not sure if it will work on mac or linux, I haven't tested

    This bot uploads its logs to p. a. s. t. e. b. i. n. As such, there is a paste limit for users, so make sure you are not spam creating pastes, or you will be locked out of it for 24 hours.
    ********************************************************************************************

    Now, what all does this bot do?

    Run commands from in discord and get information from in game:

    Remind you to check buffers, along with adding an in game method to cancel the reminders:
    https://prnt.sc/igpei4
    https://prnt.sc/igph1y
    http://prntscr.com/igpncd
    http://prntscr.com/igpnx8

    There is similar for outposts as well in terms of notifcations - just no pics of it atm cause no outpost xD

    Dynamically Add and remove users from the whitelist (Don't need to restart bot)

    Privately Log information similar to /f audit (Legit I was up till 3 am coding this, and then the next morning F logs was introduced, I was raging so hard - @blondey xD)
    http://prntscr.com/igpq0e

    this directly uploads to sorry not permitted on commands - no pics cause I was testing and got myself temp locked out xD

    LOG FACTIONS DOWTIMES!

    Yes! This bot will periodically grab factions online members and log for you whos online and how many players are online

    Theres even more, but I CBA typing it all out, so heres the list of commands:


    How do I get/run this bot?

    Idk if cosmic will block the download link cause forums, but here:
    http://www.sorry but posting those ...7ryy/CosmicPvP+Discord+Bot-Console+CLient.zip

    www mediafire com/ file / vvb1vdedbky7ryy / CosmicPvP+Discord+Bot-Console+CLient.zip

    (just delete the spaces and add the .'s where they go.

    If Anything Says: Sorry Not Permitted, that means p. a. s. t. e. b. i. n. Cosmic blocks it smh

    Im using Notepad++ to edit, I would recommend the same, its easy and lightweight

    First things first: Install Node js and npm (comes with Node) from: https://nodejs.org/en/download/ I personally used the installer but whatever works for you

    Once installed and computer restarted open up a command prompt

    - Verify node is installed by executing node -v

    - Verify npm is installed by executing npm -v

    - Execute "npm install pm2 -g"

    - Wait for pm2 to finish installing then execute "pm2 list" to verify its working

    Head over to p. a. s. t. e. b. i. n. and create an account - MAKE SURE TO SET A PASSWORD IF CREATING WITH GOOGLE ACCOUNT

    - This account will be used in the next section

    Head over to https://discordapp.com/developers/applications/me and create a new applications/me

    - Insert a name, description and icon, the click "Create App"

    - Scroll down till you see "Create a Bot User". Click it

    - In the new "bot" section that was created, make sure both boxes are unchecked (http://prntscr.com/igoa3w)

    - Click on "click to reveal" next to token and save that token somewhere (Will be used in the next section)

    - Scroll up till you see "App Details" Copy the Client ID

    Head over to https://discordapi.com/permissions.html and scroll to the bottom

    - Paste in the Client ID from the last part

    - Scroll Up till you see the box that says Administrator and select it

    (Please Note in order to invite a bot with Administrator access to your server, you also need Administrator Access)

    - Click The Generated Link at the Bottom and Invite it to the server you want!


    The The Bot should now both be in your discord and be able to run on your computer (however it will crash until the next part is completed)

    Navigate to your Bot folder and open up Bot.js

    Any code with a "//" after it followed by text is editable and in some cases necessary.

    Necessary Code to Enter (BOT WILL NOT RUN WITHOUT THESE)

    var role = ""; //Role that can run moderation commands
    var buffers = ""; //Channel to send buffer messages in
    var outposts = ""; //Channel to send outpost messages in
    var reminderTime = 15; //here is how often you want reminded in minutes
    var token = ''; //Put your bot token here - From the Last Stage
    var sorry not permitted = new PastebinAPI(''); //developer key - This can be found here: http://sorry not permitted.com/api#1

    'api_dev_key' : '', //sorry not permitted API Key, same as above
    'api_user_name' : '', //sorry not permitted Username (NOT EMAIL)
    'api_user_password' : '' //sorry not permitted Password

    Save That and Exit


    Head over to your Console Client folder and open up chatbot.cs

    - Find (string faction = "Dawn"; ) and replace Dawn with your faction name

    Save That and Exit


    Inside the Console Client Folder, open up the "Factions" folder and open up factions.txt

    - Add your factions (Make sure each one is on a new line - e.g)
    Faction1
    Faction2
    Faction3
    Save That and Exit


    Head over to the Console Client folder and open up MinecraftClient.INI

    - Where it says username and password insert your alts user and info (no spaces)

    Save That And Close

    Open up Script.txt

    change (/server voidplanet) to whatever planet you wish to connect to

    - Repeat for reconnect.rtf

    Save Those and close them


    **IMPORTANT**

    Make sure the necessary code is entered from the top




    **Optional**

    Open up tasks.ini

    - Find the task for logger.txt

    - Change the time from 1800 to whenever you want (in seconds 1800 =30 minutes, 3600 = 60 minutes)




    Your bot should be able to run now! To run the Console Client open up the Minecraft Client application

    Head over to your discord server


    To run the bot

    RUNNING WITHOUT AUTO RESTARTS

    - Useful for debugging sorry not permitted errors (too many pastes bad requests etc)

    - Run runbot.bat

    RUNNING WITH AUTO RESTARTS

    - Useful for debugging errors that crash the bot

    - Run runbot-autorestart.bat

    - There will be no command prompt - to see if running up command prompt and run "pm2 list". you should see mybot

    If Everything Is Done Successfully CONGRATS YOUR BOTS ARE ONLINE!

    My Bot is Crashing whenever I try and run it! What should I do? Run the bot in auto restart mode and wait for it to crash.

    Open up command prompt and run "pm2 logs --lines 50"

    Try and find the error from there

    If you can't, copy the contents of the logs to sorry not permitted and shoot me a message with the information. I will help when available



    My Bot is crashing occasionally what do I do?

    Run the bot in auto restart mode, it will bring the bot back online each time it crashes



    My logs are turning up empty when I run the command! What Happened?

    sorry not permitted Api is buggy :/ not much I can do about it, and if you attempt to send directly to discord, it would crash the bot for being too long.

    Stop the bot (see below)

    Run the bot in non auto restart mode. When sorry not permitted fails you will get an error message. that error typically contains what you need to fix it


    I cant execute certain commands!

    Make sure that you have the required role to execute commands. Default is "Admin"


    How Do I see if my outpost is being taken?

    Log The Alt on regular minecraft at the TOP of the Captured outpost (Has to be controlling - will not work in attacking safe room)

    Relog the alt back on the Console Client

    When your outpost is being taken it will spam both in game and in discord that it is being taken!


    How do I stop the Bot?

    If not in Auto Restart Mode, simply close the command prompt

    If in Auto Restart Mode:

    Open up Command Prompt

    execute "pm2 stop mybot"

    Thats Basically it! There Will be a readme file in the download containing all the information needed. If you have any issues, feel free to pm me here, or on discord or anywhere else. My Information is in the readme.

    Once I add updates to get exact faction login times and other commands, I will post an updated one!

    edit: by default outpost and buffer notifications are toggled on, so disable if you dont want. Also the notifactions dont @everyone instead just say everyone. Just add in @ in the code

    Tags: @blondey @LightningBoy33 @SpeChell @KoeruD @DragonSlayer0825 @WaveRunner @HockeyMaster11 @Xell
    @ypperin (told you I was making one ;) ps should sticky k thx)
    @Its_its (remember when you were helping me way way way back at the start of jungle? Finally learned myself lol) @everyoneIcantThink
     
    #1
    • Agree Agree x 2
    • Useful Useful x 2
    • Like Like x 1
    • Creative Creative x 1
  2. MasterRayFTW

    MasterRayFTW Well-Known Member
    Phantom Orchid Journeyman Hero Witcher Sandstormer Scorcher Guardian -= Tropico + =- -= Dragon + =- Explorer Freezer Drifter Demonlord Cosmonaut

    Joined:
    Nov 7, 2015
    Messages:
    2,121
    Likes Received:
    29
    IGN:
    Ray
    Planet:
    Quit facs
    Faction:
    Pce all
  3. Kinetic

    Kinetic Well-Known Member
    Hydra Pleb Tropico Squire Witcher Specialist Scorcher Archmage -= Hero + =- -= Guardian + =- Fantasy Executioner Glacier Commander Captain Demonlord Daisy

    Joined:
    Oct 5, 2016
    Messages:
    2,903
    Likes Received:
    62
    IGN:
    Kinetic_
    #3
  4. blondey

    blondey Well-Known Member
    Mutant Nomad Merchant Spirit Warlock Specialist Pyro Shard Pirate -= Witcher + =- -= Tropico + =- -= Dragon + =- -= CactusKing + =- -= Executioner + =- -= Hero + =- -= Guardian + =- -= FlowerKing + =- -= Archmage + =- Guard Commander

    Joined:
    Feb 27, 2015
    Messages:
    9,550
    Likes Received:
    231
    IGN:
    Blundeh
    Planet:
    Life
    Faction:
    Myself
    wow no tag i cri
    I SUFFERED THROUGH THE @EVERYONES D;
    xD
     
    #4
  5. FallingAngel

    FallingAngel Well-Known Member
    <= Beta Tester => Merchant Hero Tropico Squire Spirit Witcher Scorcher Acolyte -= Executioner + =- -= Guardian + =- Buccaneer FlowerKing -= Archmage + =- Glacier General CactusKing

    Joined:
    Oct 12, 2015
    Messages:
    2,664
    Likes Received:
    92
    IGN:
    FallingAngel
    Planet:
    Quit
    Faction:
    Quit
    I TAGGED U TWICE SMH

    NOW WE EVEN
     
    #5
  6. blondey

    blondey Well-Known Member
    Mutant Nomad Merchant Spirit Warlock Specialist Pyro Shard Pirate -= Witcher + =- -= Tropico + =- -= Dragon + =- -= CactusKing + =- -= Executioner + =- -= Hero + =- -= Guardian + =- -= FlowerKing + =- -= Archmage + =- Guard Commander

    Joined:
    Feb 27, 2015
    Messages:
    9,550
    Likes Received:
    231
    IGN:
    Blundeh
    Planet:
    Life
    Faction:
    Myself

    NVM IM ******* BLIND AND IT'S 3AM

    TIME TO CHANGE MY NAME TO BLINDEY
    ******* HELL IM RETARDED
     
    #6
  7. FallingAngel

    FallingAngel Well-Known Member
    <= Beta Tester => Merchant Hero Tropico Squire Spirit Witcher Scorcher Acolyte -= Executioner + =- -= Guardian + =- Buccaneer FlowerKing -= Archmage + =- Glacier General CactusKing

    Joined:
    Oct 12, 2015
    Messages:
    2,664
    Likes Received:
    92
    IGN:
    FallingAngel
    Planet:
    Quit
    Faction:
    Quit
    #7
  8. blondey

    blondey Well-Known Member
    Mutant Nomad Merchant Spirit Warlock Specialist Pyro Shard Pirate -= Witcher + =- -= Tropico + =- -= Dragon + =- -= CactusKing + =- -= Executioner + =- -= Hero + =- -= Guardian + =- -= FlowerKing + =- -= Archmage + =- Guard Commander

    Joined:
    Feb 27, 2015
    Messages:
    9,550
    Likes Received:
    231
    IGN:
    Blundeh
    Planet:
    Life
    Faction:
    Myself
    IM DUMB
    **** ME
    .-.
    I WONT EAT UR TOES NOW
     
    #8
  9. FallingAngel

    FallingAngel Well-Known Member
    <= Beta Tester => Merchant Hero Tropico Squire Spirit Witcher Scorcher Acolyte -= Executioner + =- -= Guardian + =- Buccaneer FlowerKing -= Archmage + =- Glacier General CactusKing

    Joined:
    Oct 12, 2015
    Messages:
    2,664
    Likes Received:
    92
    IGN:
    FallingAngel
    Planet:
    Quit
    Faction:
    Quit
    GOOD I LIKE MY TOES ON MY FEET THANK YOU!
     
    #9
  10. Corrupt_Claw

    Corrupt_Claw Well-Known Member
    Phantom Inferno Hero Mercenary Mist Warlock -= Tropico + =- Basilisk -= Guardian + =- Engineer FlowerKing -= Archmage + =-

    Joined:
    Mar 24, 2016
    Messages:
    3,960
    Likes Received:
    41
    IGN:
    CorruptGivesHugs
    Planet:
    Jungle
    Faction:
    Carnation
  11. blondey

    blondey Well-Known Member
    Mutant Nomad Merchant Spirit Warlock Specialist Pyro Shard Pirate -= Witcher + =- -= Tropico + =- -= Dragon + =- -= CactusKing + =- -= Executioner + =- -= Hero + =- -= Guardian + =- -= FlowerKing + =- -= Archmage + =- Guard Commander

    Joined:
    Feb 27, 2015
    Messages:
    9,550
    Likes Received:
    231
    IGN:
    Blundeh
    Planet:
    Life
    Faction:
    Myself
    YOU'RE WELCOME !! TOES DO BELONG ON FEET
     
    #11
  12. FallingAngel

    FallingAngel Well-Known Member
    <= Beta Tester => Merchant Hero Tropico Squire Spirit Witcher Scorcher Acolyte -= Executioner + =- -= Guardian + =- Buccaneer FlowerKing -= Archmage + =- Glacier General CactusKing

    Joined:
    Oct 12, 2015
    Messages:
    2,664
    Likes Received:
    92
    IGN:
    FallingAngel
    Planet:
    Quit
    Faction:
    Quit
    #12
  13. Friiied

    Friiied New Member

    Joined:
    Jan 9, 2017
    Messages:
    2
    Likes Received:
    1
    IGN:
    Friiied
    Planet:
    Void
    Faction:
    Dawn
    very nice
     
    #13
  14. Faceoff_

    Faceoff_ Cosmic Client v2.0 Beta Tester
    <= Beta Tester => Orchid Journeyman Hero Mercenary Spectre Pixie Scorcher Acolyte -= Tropico + =- Glacier Dragon

    Joined:
    Feb 15, 2017
    Messages:
    1,927
    Likes Received:
    67
    IGN:
    Faceoff_
    Planet:
    Jungle
    Faction:
    Carnation
    It sounds awesome
     
    #14
  15. blondey

    blondey Well-Known Member
    Mutant Nomad Merchant Spirit Warlock Specialist Pyro Shard Pirate -= Witcher + =- -= Tropico + =- -= Dragon + =- -= CactusKing + =- -= Executioner + =- -= Hero + =- -= Guardian + =- -= FlowerKing + =- -= Archmage + =- Guard Commander

    Joined:
    Feb 27, 2015
    Messages:
    9,550
    Likes Received:
    231
    IGN:
    Blundeh
    Planet:
    Life
    Faction:
    Myself
    #15
  16. FallingAngel

    FallingAngel Well-Known Member
    <= Beta Tester => Merchant Hero Tropico Squire Spirit Witcher Scorcher Acolyte -= Executioner + =- -= Guardian + =- Buccaneer FlowerKing -= Archmage + =- Glacier General CactusKing

    Joined:
    Oct 12, 2015
    Messages:
    2,664
    Likes Received:
    92
    IGN:
    FallingAngel
    Planet:
    Quit
    Faction:
    Quit
    I wouldve never known you pink satan you!
    [img]http://0.media.collegehumor.cvcdn.com/32/75/6eb25e48da1727d86c6f81bf2f5be0d5.jpg[/img]
     
    #16
  17. HockeyMaster11

    HockeyMaster11 Well-Known Member
    Necromancer ParkourLegend Hero Survivor Tropico Wizard Witcher Spectre Rosy Scorcher Blizzard -= Guardian + =- Commander Captain Dragon

    Joined:
    Aug 13, 2015
    Messages:
    9,792
    Likes Received:
    493
    IGN:
    HockeyMaster11
    Planet:
    Pirate
    Faction:
    SlimThick
    seems extremely useful and overall kool

    Gg
     
    #17
  18. blondey

    blondey Well-Known Member
    Mutant Nomad Merchant Spirit Warlock Specialist Pyro Shard Pirate -= Witcher + =- -= Tropico + =- -= Dragon + =- -= CactusKing + =- -= Executioner + =- -= Hero + =- -= Guardian + =- -= FlowerKing + =- -= Archmage + =- Guard Commander

    Joined:
    Feb 27, 2015
    Messages:
    9,550
    Likes Received:
    231
    IGN:
    Blundeh
    Planet:
    Life
    Faction:
    Myself
    sexy satan ;)
     
    #18
  19. Its_its

    Its_its Administrator
    Administrator

    Joined:
    Mar 16, 2015
    Messages:
    2,958
    Likes Received:
    198
    IGN:
    Its_
    Planet:
    HUB
    Lies. NOW TELL ME WHO YOU PAID TO CODE THIS! I KNOW U DIDN'T DO IT YOURSELF!
     
    #19
    • Kappa Kappa x 1
  20. FallingAngel

    FallingAngel Well-Known Member
    <= Beta Tester => Merchant Hero Tropico Squire Spirit Witcher Scorcher Acolyte -= Executioner + =- -= Guardian + =- Buccaneer FlowerKing -= Archmage + =- Glacier General CactusKing

    Joined:
    Oct 12, 2015
    Messages:
    2,664
    Likes Received:
    92
    IGN:
    FallingAngel
    Planet:
    Quit
    Faction:
    Quit
    IM NOT THAT BAD AT CODING!!!!!!!?

    I KNOW I WAS THEN BUT THAT WAS THEN AND THIS IS NOW!!!!!


    I'm still really bad XD


    I paid @WaveRunner hes really really good at luyten. I mean custom coding ;)
     
    #20

Share This Page