Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Functions

Remco edited this page Dec 7, 2015 · 18 revisions

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.

!gif <query>
!game <nameofgame> More info below.
  • 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?
!refresh
  • Refreshes the playing status from the bot to a different game.
!leave
  • 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.
!kappa
  • Sends a PNG image of the Twitch emote Kappa to the chat.
!yesno [yes/no]
  • Gets a appropriate gif.
!xkcd [comic number]
  • Gets a XKCD comic.
!advice
  • Gives great advice to the user.
!stroke <name> OR <first-name> <last-name>
  • Strokes someone's ego
!dice [number-of-dice]d[sides-of-dice]
  • Simulates a dice roll.
!imdb <movie-name>
  • Gets the IMDb info of a certain movie.
!fact
  • Returns a random fact.
!catfacts
  • Returns a random cat fact.
!yomomma
  • Gets a random Yo momma joke
!8ball <question>
  • Get instant advice about what to do.
!setgame <game-id>
  • Sets the playing status to the given game ID.
  • For game ID's, check at the Game ID page of the wiki.
!maintenance-mode <time-in-seconds>
  • This command is admin only.
  • Deactivates the command interpreter for a given amount of seconds.
!server-info
  • Returns some info about the server the command is issued in.
!devs
  • Prints the ID's from SteamingMutt and Mirrorbreak to the channel.
!status
  • Prints information about the bot, like uptime, to the channel.
!killswitch
  • This command is admin only.
  • Kills all running instances of DougleyBot, without restarting.
!image <query>
!youtube <query>
!wiki <query>
  • 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.

!say <text>
  • Copies text, and repeats it as the bot.
  • Example:
    • User: !say I'm a bot.
    • Response: I'm a bot.
!pullanddeploy
  • This command is admin only.
  • Pulls changes from your (or this) repo and restarts node.
  • Does not work for Windows!
!meme memetype "text1" "text2" More info below.
  • Returns a meme image. Notice the quotes around text, they are vitally important.
  • Example:
!help
  • Prints all commands with usage and description.
!stock <ticker symbol>
  • Fetches a stock price from Yahoo! Finance.
  • Example:
    • User: !stock GOOGL
    • Response: Alphabet Inc. price: $756.29
!servers
  • This command is admin only.
  • Returns servers this bot is in.
!channels
  • This command is admin only.
  • Returns channels this bot is in.
!idle
  • This command is admin only.
  • Sets bot status to idle.
!online
  • This command is admin only.
  • Sets bot status to online.
!ping
  • Responds to user with "Pong!", usefull for cheking if the bot is still active.
  • Example:
    • User: !ping
    • Response: @User Pong!
!join-server <bot-username> <instant-invite>

Additional information

!meme

!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:

Meme type Corresponds to: Imgflip link
brace Brace Yourselves X is Coming https://imgflip.com/meme/Brace-Yourselves-X-is-Coming
mostinteresting The Most Interesting Man In The World https://imgflip.com/meme/The-Most-Interesting-Man-In-The-World
fry Futurama Fry https://imgflip.com/meme/Futurama-Fry
yuno Y U No https://imgflip.com/meme/Y-U-No
success Success Kid https://imgflip.com/meme/Success-Kid
allthethings X All The Y https://imgflip.com/meme/X-All-The-Y
doge Doge https://imgflip.com/meme/Doge
drevil Dr Evil Laser https://imgflip.com/meme/Dr-Evil-Laser
skeptical Skeptical Baby https://imgflip.com/meme/Skeptical-Baby
notime Aint Nobody Got Time For That https://imgflip.com/meme/Aint-Nobody-Got-Time-For-That
yodawg Yo Dawg Heard You https://imgflip.com/meme/Yo-Dawg-Heard-You
ermahgerd Ermahgerd Berks https://imgflip.com/meme/Ermahgerd-Berks
hipsterariel Hipster Ariel https://imgflip.com/meme/Hipster-Ariel
imagination Imagination Spongebob https://imgflip.com/meme/Imagination-Spongebob
grumpycat Grumpy Cat https://imgflip.com/meme/Grumpy-Cat
morpheus Matrix Morpheus https://imgflip.com/meme/Matrix-Morpheus
1stworldproblems First World Problems https://imgflip.com/meme/First-World-Problems

More memes are planned to be added later.

!game

!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.

Admin restricted commands

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.