A containerized version of CorpNewt's CorpBot.py Discord Bot
1.5K
A slightly less clumsy python bot for discord
The bot's basic settings should be in a file called settings_dict.json in the same folder as the Main.py file. Some basic formatting of this file would look like so:
{
"prefix": "your_custom_prefix_here",
"token": "your_token_here",
"weather": "your_weather_api_key_here",
"currency": "your_currency_api_key_here"
}
You'll want to replace the values with your own. The prefix key can be omitted, and the bot will fallback on its default $ prefix.
A list of cogs, commands, and descriptions:
Actions, Admin, Ascii, Bot, BotAdmin, CAH, Calc, Channel, ChatterBot, Claptrap, Clippy, CogManager, Comic, DJRoles, Debugging, DisableCommand, DrBeer, EightBall, Emoji, Encode, Example, Face, Feed, Fliptime, GameLookup, Giphy, Groot, Help, Humor, Hw, IntelArk, Invite, Jpeg, LangFilter, Lists, MadLibs, Morse, Music, OfflineUser, PciUsb, Plist, Printer, Profile, Promote, Quote, RateLimit, Reddit, Remind, Search, SecretSanta, Server, ServerStats, Settings, Setup, Spooktober, Stream, Strike, Tags, Telephone, TempRole, Time, Translate, Turret, Uptime, UrbanDict, UserRole, VoteKick, Weather, Welcome, Wiki, Xp, XpBlock, XpStack
$boop [member]
└─ Boop da snoot.
$drink [member]
└─ Drink like a boss.
$eat [member]
└─ Eat like a boss.
$highfive [member]
└─ High five like a boss.
$pet [member]
└─ pet kitties.
$spook [member]
└─ sp00ktober by camiel.
$addadmin [role]
└─ Adds a new role to the admin list (admin only).
$addxprole [role] [xp]
└─ Adds a new role to the xp promotion/demotion system (admin only).
$broadcast [message]
└─ Broadcasts a message to all connected servers. Can only be done by the owner.
$defaultchannel
└─ Lists the server's default channel, whether custom or not.
$lock
└─ Toggles whether the bot only responds to admins (admin only).
$onexprole [yes_no]
└─ Gets and sets whether or not to remove all but the current xp role a user has...
$prunexproles
└─ Removes any roles from the xp promotion/demotion system that are no longer on...
$rawrules
└─ Display the markdown for the server's rules (bot-admin only).
$removeadmin [role]
└─ Removes a role from the admin list (admin only).
$removemotd [chan]
└─ Removes the message of the day from the selected channel.
$removexprole [role]
└─ Removes a role from the xp promotion/demotion system (admin only).
$setdefaultchannel [channel]
└─ Sets a replacement default channel for bot messages (admin only).
$setdefaultrole [role]
└─ Sets the default role or position for auto-role assignment.
$sethackrole [role]
└─ Sets the required role ID to add/remove hacks (admin only).
$setlinkrole [role]
└─ Sets the required role ID to add/remove links (admin only).
$setmadlibschannel [channel]
└─ Sets the channel for MadLibs (admin only).
$setmotd [message] [chan]
└─ Adds a message of the day to the selected channel.
$setrules [rules]
└─ Set the server's rules (bot-admin only).
$setstoprole [role]
└─ Sets the required role ID to stop the music player (admin only).
$setxp [member] [xpAmount]
└─ Sets an absolute value for the member's xp (admin only).
$setxpreserve [member] [xpAmount]
└─ Set's an absolute value for the member's xp reserve (admin only).
$setxprole [role]
└─ Sets the required role ID to give xp, gamble, or feed the bot (admin only).
$stoprole
└─ Lists the required role to stop the bot from playing music.
$xplimit [limit]
└─ Gets and sets a limit to the maximum xp a member can get. Pass a negative va...
$xpreservelimit [limit]
└─ Gets and sets a limit to the maximum xp reserve a member can get. Pass a neg...
$xprole
└─ Lists the required role to give xp, gamble, or feed the bot.
$ascii [text]
└─ Beautify some text (font list at http://artii.herokuapp.com/fonts_list).
$adminunlim [yes_no]
└─ Sets whether or not to allow unlimited xp to admins (owner only).
$avatar [filename]
└─ Sets the bot's avatar (owner only).
$basadmin [yes_no]
└─ Sets whether or not to treat bot-admins as admins with regards to xp (admin o...
$botinfo
└─ Lists some general stats about the bot.
$cloc
└─ Outputs the total count of lines of code in the currently installed repo.
$embed [embed_type=field] <embed>
└─ Builds an embed using json formatting.
$getimage <image>
└─ Tests downloading - owner only
$hostinfo
└─ List info about the bot's host environment.
$joinpm [yes_no]
└─ Sets whether or not to pm the rules to new users when they join (bot-admin on...
$listengame [game]
└─ Sets the listening status of the bot (owner-only).
$nickname [name]
└─ Set the bot's nickname (admin-only).
$ping
└─ Feeling lonely?
$playgame [game]
└─ Sets the playing status of the bot (owner-only).
$pres [playing_type=0] [status_type=online] [game] [url]
└─ Changes the bot's presence (owner-only).
$reboot [force]
└─ Reboots the bot (owner only).
$servers
└─ Lists the number of servers I'm connected to!
$setbotparts [parts]
└─ Set the bot's parts - can be a url, formatted text, or nothing to clear.
$shutdown [force]
└─ Shuts down the bot (owner only).
$source
└─ Link the github source.
$speedtest
└─ Run a network speed test (owner only).
$status [status]
└─ Gets or sets the bot's online status (owner-only).
$streamgame [url] [game]
└─ Sets the streaming status of the bot, requires the url and the game (owner-on...
$watchgame [game]
└─ Sets the watching status of the bot (owner-only).
$ban [member]
└─ Bans the selected member (bot-admin only).
$ignore [member]
└─ Adds a member to the bot's "ignore" list (bot-admin only).
$ignored
└─ Lists the users currently being ignored.
$kick [member]
└─ Kicks the selected member (bot-admin only).
$listen [member]
└─ Removes a member from the bot's "ignore" list (bot-admin only).
$mute [member] [cooldown]
└─ Prevents a member from sending messages in chat (bot-admin only).
$setuserparts [member] [parts]
└─ Set another user's parts list (owner only).
$unmute [member]
└─ Allows a muted member to send messages in chat (bot-admin only).
$addbot
└─ Adds a bot to the game. Can only be done by the player who created the game.
$addbots [number]
└─ Adds bots to the game. Can only be done by the player who created the game.
$cahgames
└─ Displays up to 10 CAH games in progress.
$flushhand
└─ Flushes the cards in your hand - can only be done once per game.
$game [message]
└─ Displays the game's current status.
$hand
└─ Shows your hand.
$idlekick [setting]
└─ Sets whether or not to kick members if idle for 5 minutes or more. Can only ...
$joincah [id]
└─ Join a Cards Against Humanity game. If no id or user is passed, joins a rand...
$laid
└─ Shows who laid their cards and who hasn't.
$lay [card]
└─ Lays a card or cards from your hand. If multiple cards are needed, separate ...
$leavecah
└─ Leaves the current game you're in.
$newcah
└─ Starts a new Cards Against Humanity game.
$pick [card]
└─ As the judge - pick the winning card(s).
$removebot [id]
└─ Removes a bot from the game. Can only be done by the player who created the ...
$removeplayer [name]
└─ Removes a player from the game. Can only be done by the player who created t...
$say [message]
└─ Broadcasts a message to the other players in your game.
$score
└─ Display the score of the current game.
$calc [formula]
└─ Do some math.
$islocked
└─ Says whether the bot only responds to admins.
$ismuted [member]
└─ Says whether a member is muted in chat.
$listadmin
└─ Lists admin roles and id's.
$listmuted
└─ Lists the names of those that are muted.
$log [messages=25] [chan]
└─ Logs the passed number of messages from the given channel - 25 by default (ad...
$rolecall [role]
└─ Lists the number of users in a current role.
$rules
└─ Display the server's rules.
$chat [message]
└─ Chats with the bot.
$setchatchannel [channel]
└─ Sets the channel for bot chatter.
$claptrap
└─ Can I shoot something now? Or climb some stairs? SOMETHING exciting?
$clippy [text]
└─ I *know* you wanted some help with something - what was it?
$extension [extension]
└─ Outputs the cogs attatched to the passed extension.
$extensions
└─ Lists all extensions and their corresponding cogs.
$imports [extension]
└─ Outputs the extensions imported by the passed extension.
$reload [extension]
└─ Reloads the passed extension - or all if none passed.
$update
└─ Updates from git.
$calvin [date]
└─ Displays the Calvin & Hobbes comic for the passed date (MM-DD-YYYY) if found.
$cyanide [date]
└─ Displays the Cyanide & Happiness comic for the passed date (MM-DD-YYYY) if fo...
$dilbert [date]
└─ Displays the Dilbert comic for the passed date (MM-DD-YYYY).
$garfield [date]
└─ Displays the Garfield comic for the passed date (MM-DD-YYYY) if found.
$gmg [date]
└─ Displays the Garfield Minus Garfield comic for the passed date (MM-DD-YYYY) i...
$peanuts [date]
└─ Displays the Peanuts comic for the passed date (MM-DD-YYYY) if found.
$randcalvin
└─ Randomly picks and displays a Calvin & Hobbes comic.
$randcyanide
└─ Randomly picks and displays a Cyanide & Happiness comic.
$randgarfield
└─ Randomly picks and displays a Garfield comic.
$randgmg
└─ Randomly picks and displays a Garfield Minus Garfield comic.
$randilbert
└─ Randomly picks and displays a Dilbert comic.
$randpeanuts
└─ Randomly picks and displays a Peanuts comic.
$randxkcd
└─ Displays a random XKCD comic.
$xkcd [date]
└─ Displays the XKCD comic for the passed date (MM-DD-YYYY) or comic number if f...
$adddj [role]
└─ Adds a new role to the dj list (bot-admin only).
$listdj
└─ Lists dj roles and id's.
$removedj [role]
└─ Removes a role from the dj list (bot-admin only).
$ytlist [yes_no]
└─ Gets or sets whether or not the server will show a list of options when searc...
$clean [messages] [chan]
└─ Cleans the passed number of messages from the given channel (admin only).
$cleardebug
└─ Deletes the debug.txt file (owner only).
$heartbeat
└─ Write to the console and attempt to send a message (owner only).
$logdisable [options]
└─ Disables the passed, comma-delimited log vars.
$logenable [options]
└─ Enables the passed, comma-delimited log vars.
$logging
└─ Outputs whether or not we're logging is enabled (bot-admin only).
$logpreset [preset]
└─ Can select one of 4 available presets - off, quiet, normal, verbose (bot-admi...
$setdebug [debug]
└─ Turns on/off debugging (owner only - always off by default).
$setlogchannel [channel]
└─ Sets the channel for Logging (bot-admin only).
$adminallow [yes_no]
└─ Sets whether admins can access disabled commands (admin-only).
$badminallow [yes_no]
└─ Sets whether bot-admins can access disabled commands (admin-only).
$disable [command_or_cog_name]
└─ Disables the passed command or all commands in the passed cog (admin-only). ...
$disableall
└─ Disables all enabled commands outside this module (admin-only).
$disabledreact [yes_no]
└─ Sets whether the bot reacts to disabled commands when attempted (admin-only).
$enable [command_or_cog_name]
└─ Enables the passed command or all commands in the passed cog (admin-only). C...
$enableall
└─ Enables all disabled commands (admin-only).
$isdisabled [command_or_cog_name]
└─ Outputs whether the passed command - or all commands in a passed cog are disa...
$listdisabled
└─ Lists all disabled commands (admin-only).
$drbeer
└─ Put yourself in your place.
$eightball [question]
└─ Get some answers.
$emoji [emoji]
└─ Outputs the passed emoji... but bigger!
$binint [input_binary]
└─ Converts the input binary to its integer representation.
$binstr [input_binary]
└─ Converts the input binary to its string representation.
$color [value]
└─ View info on a rgb, hex or cmyk color and their
$dechex [input_dec]
└─ Converts an int to hex.
$encode [from_type] [to_type] [value]
└─ Data converter from ascii <--> hex <--> base64.
$hexdec [input_hex]
└─ Converts hex to decimal.
$hexswap [input_hex]
└─ Byte swaps the passed hex value.
$intbin [input_int]
└─ Converts the input integer to its binary representation.
$slide [input_hex]
└─ Calculates your slide value for Clover based on an input address (in hex).
$strbin [input_string]
└─ Converts the input string to its binary representation.
$add <left> <right>
└─ Adds two numbers together.
$choose [choices...]
└─ Chooses between multiple choices.
$joined [member]
└─ Says when a member joined.
$roll [dice=1d20]
└─ Rolls a dice in NdN±Na/d format.
$lastlenny
└─ Who Lenny'ed last?
$lastshrug
└─ Who shrugged last?
$lenny [message]
└─ Give me some Lenny.
$shrug [message]
└─ Shrug it off.
$feed [food]
└─ Feed the bot some xp!
$hunger
└─ How hungry is the bot?
$ignoredeath [yes_no]
└─ Sets whether the bot ignores its own death and continues to respond post-mort...
$iskill
└─ Check the ded of the bot.
$kill
└─ Kill the bot... you heartless soul.
$killrole
└─ Lists the required role to kill/resurrect the bot.
$resurrect
└─ Restore life to the bot. What magic is this?
$setkillrole [role]
└─ Sets the required role ID to add/remove hacks (admin only).
$tableflip [yes_no]
└─ Turns on/off table flip muting (bot-admin only; always off by default).
$gamelookup <game>
└─ Help not available...
$addgif [role]
└─ Adds a new role to the gif list (admin only).
$gif [gif]
└─ Search for some giphy!
$listgif
└─ Lists gif roles and id's.
$removegif [role]
└─ Removes a role from the gif list (admin only).
$groot
└─ Who... who are you?
$dumphelp [tab_indent_count]
└─ Dumps a timpestamped, formatted list of commands and descriptions into the sa...
$dumpmarkdown
└─ Dumps a timpestamped, markdown-formatted list of commands and descriptions in...
$help [command]
└─ Lists the bot's commands and cogs.
$fart
└─ PrincessZoey :P
$french
└─ Speaking French... probably...
$german
└─ Speaking German... probably...
$holy [subject]
└─ Time to backup the Batman!
$meme [template_id] [text_zero] [text_one]
└─ Generate Memes! You can get a list of meme templates with the memetemps comm...
$memetemps
└─ Get Meme Templates
$poke [url]
└─ Pokes the passed url/user/uploaded image.
$zalgo [message]
└─ Ỉ s̰hͨo̹u̳lͪd͆ r͈͍e͓̬a͓͜lͨ̈l̘̇y̡͟ h͚͆a̵͢v͐͑eͦ̓ i͋̍̕n̵̰ͤs͖̟̟t͔ͤ̉ǎ͓͐ḻ̪ͨl̦͒̂e...
$cancelhw
└─ Cancels a current hardware session.
$delhw [build]
└─ Removes a build from your build list.
$edithw [build]
└─ Edits a build from your build list.
$gethw [user] [search]
└─ Searches the user's hardware for a specific search term.
$hw [user] [build]
└─ Lists the hardware for either the user's default build - or the passed build.
$listhw [user]
└─ Lists the builds for the specified user - or yourself if no user passed.
$mainhw [build]
└─ Sets a new main build from your build list.
$newhw
└─ Initiate a new-hardware conversation with the bot. The hardware added will a...
$pcpp [url] [style] [escape]
└─ Convert a pcpartpicker.com link into markdown parts. Available styles: normal...
$rawhw [user] [build]
└─ Lists the raw markdown for either the user's default build - or the passed bu...
$renhw [build]
└─ Renames a build from your build list.
$sethwchannel [channel]
└─ Sets the channel for hardware (admin only).
$iark [text]
└─ Search Ark for Intel CPU info.
$approvejoin [server_id]
└─ Temporarily allows the bot to join the passed server id or join url (owner-on...
$block [server]
└─ Blocks the bot from joining a server - takes either a name or an id (owner-on...
$blocked
└─ Lists all blocked servers and owners (owner-only).
$canjoin [yes_no]
└─ Sets whether the bot is allowed to join new servers (owner-only and enabled b...
$invite [invite_url]
└─ Outputs a url you can use to invite me to your server.
$requestjoin [invite_url]
└─ Forwards the invite url to the bot's owners for review.
$revokejoin [server_id]
└─ Revokes a previously approved temporary join (owner-only).
$unblock [server]
└─ Unblocks a server or owner (owner-only).
$unblockall
└─ Unblocks all blocked servers and owners (owner-only).
$jpeg [url]
└─ MOAR JPEG! Accepts a url - or picks the first attachment.
$addfilter [words]
└─ Adds comma delimited words to the word list (bot-admin only).
$clearfilter
└─ Empties the list of words that will be filtered (bot-admin only).
$dumpfilter
└─ Saves the filtered word list to a text file and uploads it to the requestor (...
$listfilter
└─ Prints out the list of words that will be filtered (bot-admin only).
$remfilter [words]
└─ Removes comma delimited words from the word list (bot-admin only).
$addhack [name] [hack]
└─ Add a hack to the hack list.
$addlink [name] [link]
└─ Add a link to the link list.
$hack [name]
└─ Retrieve a hack from the hack list.
$hackinfo [name]
└─ Displays info about a hack from the hack list.
$hackrole
└─ Lists the required role to add hacks.
$hacks
└─ List all hacks in the hack list.
$lastonline [member]
└─ Lists the last time a user was online if known.
$link [name]
└─ Retrieve a link from the link list.
$linkinfo [name]
└─ Displays info about a link from the link list.
$linkrole
└─ Lists the required role to add links.
$links
└─ List all links in the link list.
$online
└─ Lists the number of users online.
$parts [member]
└─ Retrieve a member's parts list. DEPRECATED - Use hw instead.
$partstemp
└─ Gives a copy & paste style template for setting a parts list.
$rawhack [name]
└─ Retrieve a hack's raw markdown from the hack list.
$rawhacks
└─ List raw markdown of all hacks in the hack list.
$rawlink [name]
└─ Retrieve a link's raw markdown from the link list.
$rawlinks
└─ List raw markdown of all links in the link list.
$rawparts [member]
└─ Retrieve the raw markdown for a member's parts list. DEPRECATED - Use rawhw i...
$removehack [name]
└─ Remove a hack from the hack list.
$removelink [name]
└─ Remove a link from the link list.
$setparts [parts]
└─ Set your own parts - can be a url, formatted text, or nothing to clear. DEPRE...
$madlibs
└─ Let's play MadLibs!
$morse [content]
└─ Converts ascii to morse code. Accepts a-z and 0-9. Each letter is comprised...
$morsetable [num_per_row]
└─ Prints out the morse code lookup table.
$unmorse [content]
└─ Converts morse code to ascii. Each letter is comprised of "-" or "." and sep...
$autodeleteafter [seconds]
└─ Lists or sets the current delay before auto-deleting music related messages (...
$join [channel]
└─ Joins a voice channel.
$pause
└─ Pauses the currently playing song.
$paused [moons]
└─ Lists whether or not the player is paused. Synonym of the playing command.
$play [url]
└─ Plays from a url (almost anything youtube_dl supports) or resumes a currently...
$playing [moons]
└─ Lists the currently playing song if any.
$playingin
└─ Shows the number of servers the bot is currently playing music in.
$playlist
└─ Lists the queued songs in the playlist.
$repeat [yes_no]
└─ Checks or sets whether to repeat the current playlist.
$resume
└─ Resumes the song if paused.
$skip
└─ Adds your vote to skip the current song. 50% or more of the non-bot users ne...
$stop
└─ Stops and disconnects the bot from voice.
$unplay [song_number]
└─ Removes the passed song number from the queue. You must be the requestor, or...
$unqueue
└─ Removes all songs you've added from the queue (does not include the currently...
$volume [volume]
└─ Changes the player's volume (0-100).
$yt [search]
└─ Searches youtube for the passed terms and posts a link to the first hit.
$remindoffline [yes_no]
└─ Sets whether to inform users that pinged members are offline or not.
$pci [ven_dev]
└─ Searches pci-ids.ucw.cz for the passed PCI ven:dev id.
$usb [ven_dev]
└─ Searches usb-ids.gowdy.us for the passed USB ven:dev id.
$nvweb [os_build]
└─ Prints the download url for the passed OS build number (if it exists). If no...
$plist [url]
└─ Validates plist file structure. Accepts a url - or picks the first attachment.
$print [url]
docker pull didstopia/corpbot.py:latest