-
Notifications
You must be signed in to change notification settings - Fork 18
Functions
As mentioned on the main page, DougleyBot has several main features, most can be removed or replaced according to your needs.
Each of these commands correspond to a piece of code present in discord_bot.js
, in the "commands" variable.
- Returns a gif from Giphy.
-
Example:
- User: !gif cute cats
- Response: http://media.giphy.com/media/kvrvnB158J4fm/giphy.gif [Tags: cute,cats]`
- Asks the room if anyone wants to play the specified game. Some abbreviations work.
-
Example:
- User: !game gtao
- Response: @everyone Anyone up for Grand Theft Auto: Online?
- Refreshes the playing status from the bot to a different game.
- Asks the bot to leave the server wherein the command is issued.
- This command can only be used by users with the "Manage server" permission in their role.
- Sends a PNG image of the Twitch emote Kappa to the chat.
- Gets a appropriate gif.
- Gets a XKCD comic.
- Gives great advice to the user.
- Strokes someone's ego
- Simulates a dice roll.
- Gets the IMDb info of a certain movie.
- Returns a random fact.
- Returns a random cat fact.
- Gets a random Yo momma joke
- Get instant advice about what to do.
- Sets the playing status to the given game ID.
- For game ID's, check at the Game ID page of the wiki.
- This command is admin only.
- Deactivates the command interpreter for a given amount of seconds.
- Returns some info about the server the command is issued in.
- Prints the ID's from SteamingMutt and Mirrorbreak to the channel.
- Prints information about the bot, like uptime, to the channel.
- This command is admin only.
- Kills all running instances of DougleyBot, without restarting.
- Returns an image from Google. (Note that there's no NSFW filter active)
-
Example:
- User: !image cute cats
- Response: http://www.fndvisions.org/img/cutecat.jpg
- Returns a YouTube link.
-
Example:
- User: !youtube Windows 10 review
- Response: http://www.youtube.com/watch?v=xyvQaVUeu90
- This command has a cooldown of 10 seconds.
- Returns the summary of the first search result on Wikipedia.
-
Example:
- User: !wiki nvidia
- Response: Nvidia Corporation (/ɪnˈvɪdiə/ in-VID-eeə) (commonly referred to as Nvidia, stylized as NVIDIA, nVIDIA or nVidia) is an American worldwide technology company based in Santa Clara, California. Nvidia manufactures graphics processing units (GPUs), as well as system on a chip units (SOCs) for the mobile computing market. Nvidia's primary GPU product line, labeled "GeForce", is in direct competition with Advanced Micro Devices' (AMD) "Radeon" products. Nvidia also joined the gaming industry with its handheld Shield Portable and Shield Tablet, as well as the tablet market with the Tegra Note 7.
- In addition to GPU manufacturing, Nvidia provides parallel processing capabilities to researchers and scientists that allow them to efficiently run high-performance applications. They are deployed in supercomputing sites around the world. More recently, Nvidia has moved into the mobile computing market, where it produces Tegra mobile processors for smartphones and tablets, as well as vehicle navigation and entertainment systems. In addition to AMD, its competitors include Intel and Qualcomm.
Notice that !wiki
outputs more than 1 response in this example, that's because there is more than 1 paragraph on the summary of this wiki.
- Copies text, and repeats it as the bot.
-
Example:
- User: !say I'm a bot.
- Response: I'm a bot.
- This command is admin only.
- Pulls changes from your (or this) repo and restarts node.
- Does not work for Windows!
- Returns a meme image. Notice the quotes around text, they are vitally important.
-
Example:
- User: !meme doge "DougleyBot knows lots of memes" "Much wow"
- Response: http://i.imgflip.com/tm7fw.jpg
- Prints all commands with usage and description.
- Fetches a stock price from Yahoo! Finance.
-
Example:
- User: !stock GOOGL
- Response: Alphabet Inc. price: $756.29
- This command is admin only.
- Returns servers this bot is in.
- This command is admin only.
- Returns channels this bot is in.
- This command is admin only.
- Sets bot status to idle.
- This command is admin only.
- Sets bot status to online.
- Responds to user with "Pong!", usefull for cheking if the bot is still active.
-
Example:
- User: !ping
- Response: @User Pong!
- Bot will join the requested server.
-
Example:
- User: !join-server @DougleyBot https://discord.gg/0cFoiR5QVh57Spqg`
- Response: Successfully joined DougleyBot test server
!meme
takes the 2 text lines given as arguments and makes a meme out of it.
Currently, there is only support for a couple of predetermined memes, namely:
More memes are planned to be added later.
!game
takes the argument given and treats it as a title of a video game.
Once that's finished, DougleyBot will repeat it back to the channel where the command was registered with the added sentence: "@everyone Anyone up for..."
As mentioned before, !game
can treat some abbreviations as video game titles, namely:
Abbreviation | Corresponds to: |
---|---|
cs | Counter-Strike |
hon | Heroes of Newerth |
hots | Heroes of the Storm |
sc2 | Starcraft II |
wf | Warframe |
gtao | Grand Theft Auto: Online |
gta | Grand Theft Auto |
lol | League of Legends |
wow | World of Warcraft |
tf2 | Team Fortress 2 |
p2 | Portal 2 |
civ | Civilization |
se | Space Engineers |
cod | Call of Duty |
db | Dirty Bomb |
rs | RuneScape |
sr | Shadowrun |
mgs5 | Metal Gear Solid V |
ed | Elite: Dangerous |
pd | PayDay |
pd2 | PayDay 2 |
me | Medieval Engineers |
me3 | Mass Effect 3 |
ws | WildStar |
aoe | Age Of Empires |
wt | War Thunder |
jc | Just Cause |
wd | Watch_Dogs |
sb | StarBound |
More abbreviations are planned to be added later.
The admin restricted commands can only be used by users with a corresponding Discord ID, noted in config.json
.
The already running instance in the test server has SteamingMutt, Perpetucake and Mirrorbreak as admins.
If no admins are defined when the bot starts (and the example ID's are removed), no admin restricted can be used by users, and the bot might crash when executing a restricted command.