Skip to content

Rainy Bot is a multi-use Discord bot with several random features.

License

Notifications You must be signed in to change notification settings

TylersApps/Rainy_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rainy Bot

Rainy Bot is a multi-use Discord bot that I use in my servers. It has several functions (outlined below) and I would love to try new functions. Pop an idea in the issues tab if you have an idea for a new feature and I will do my best to implement it!

Commands

Current

  • /help displays a list of all available commands (different list for admins and non-admins).
  • /randompost <subreddit_name> gets a random post from the specified subreddit.
  • /roll <(x)d(y)> rolls x dice with y sides (e.g. "/roll 4d6" rolls four 6-sded dice).
  • /define <word> defines the word passed in using the Free Dictionary API.
  • /pronouns sends an embed with buttons to set pronouns [Admin Only]
  • /rules sends rules message to channel [Owner Only]
  • /urban <word> defines the word with Urban Dictionary
  • /dms sends an embed with buttons to set DM permissions to DMs Open, DMs Closed, or Ask to DM [Owner Only]

Planned

  • /unsplash <search_term> returns a random post from unsplash OR a random post from search

Setting Up the Bot

Permissions

The bot needs the following permissions to function properly:

  • Manage Roles
  • Read Messages/View Channels
  • Send Messages
  • Embed Links
  • Mention Everyone
  • Use External Emojis
  • Move Members

What the Bot Does

When the bot joins a server, it will create the following roles:

  • @DMs Open
  • @DMs Closed
  • @Ask to DM
  • @He/Him
  • @She/Her
  • @They/Them
  • @Other Pronouns

Please do not change the names of these roles as certain functions of the bots will stop working. You may change everything else about the roles (color, position, etc.) as long as they are below the Rainy role in the roles list and keep the original name. If you do change the name, you can always change it back, just keep the capitalization the same as above.

Built With

  • Nextcord - Discord API wrapper
  • Async PRAW - Asynchronous Reddit API wrapper
  • Colorama - Colorful console outputs
  • AIOHTTP - Asynchronous HTTP Client/Server
  • udpy - Urban Dictionary API Wrapper

Contributors

  • Tyler Holley

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgements

Inspired by Milesnocte's WoodyBot

Developing your own

If you cloned this repo and are developing your own or using it to test features, see below:

Scopes

The bot needs the following scopes in the developer portal:

  • bot
  • applications.commands

Intents

The bot's code adds all intents manually but to make it as painless as possible, enable the following privileged gateway intents in the Bot screen:

  • Presence Intent
  • Server Members Intent
  • Message Content Intent

About

Rainy Bot is a multi-use Discord bot with several random features.

Topics

Resources

License

Stars

Watchers

Forks

Languages