All projects

Discord bot · Personal

Fido Bot

A Discord bot whose main functionality is to spread emojis throughout the server by adding them to existing members' names. The bot has some additional functionality for moderation, which will be expanded upon in the future.

  • Discord API
  • MongoDB
Fido Bot artwork

01 Commands

Admin commands

Admin commands only trigger when an admin is the one giving them. Otherwise the bot intentionally ignores them, with no indication that the command exists.

Server settings are stored in MongoDB. This allows the bot to be used in multiple servers, each able to set its own preferred emoji to spread throughout people's names, and its own designated channel for the bot to forward users' DMs to.

CommandDefaultExampleDescription
!setbotchannelNull!setbotchannel admin-channelSets the channel that receives direct messages users send to the bot. Can be any channel in the server. By default no direct messages are forwarded until this is set.
!removeall--Removes all instances of the set emoji from every user's name in the server.
!setemoji🌽!setemoji 💕Sets the emoji that will be added to users' names by the other bot commands.
!setaddwordthis!setaddword addAdds one emoji to any user that uses the word in a message.
!setsubtractwordthat!setsubtractword removeRemoves every instance of the emoji from a user if they use the word in a message.
!setlotterywordspread!setlotteryword randomWhen any user uses the word, the bot adds one emoji to five random users in the server (excluding admins).
!values--Displays the current emoji, add word, subtract word, and lottery word for the server.
!resetall--Resets the emoji, add word, subtract word, and lottery word back to their default values.

User commands

Commands any user can use to manually gain and give emojis to other users. The bot is unable to give emojis to anyone with equal or greater authority in the server, so it cannot give emojis to admins, and it has been set to ignore other bots.

CommandExampleDescription
!giveme!giveme 10Adds the given number of emojis to the user's name, up to the maximum allowed by the characters left in their nickname.
!transferto!transferto @other_user 5Transfers the given number of emojis from one user's name to the specified user.

02 Meme listeners

What's with all the corn?

The corn, much like everything else in this section, is an inside joke for the server this bot was originally designed for.

ListenerDescription
cornOn any instance of "corn" the bot responds with corn emojis, a corn quote, or yells about corn being spoken in its server. This includes GIFs or URLs with corn in the name, and words like corner or cornea. It is very sensitive to the word corn. It's a feature, not a bug!
whoReplies to the comment with "who", waits 3 seconds, then replies with "cares".
I love fidoDirect messages the user to say it loves them too, then changes their server nickname to "Fido's chew toy".
free me fidoRemoves the user's nickname, reverting them back to their original name.