1Bot is a free Discord bot that lets you get things done without leaving Discord - from poking fun at your friends to managing channels.
Contributions and suggestions are welcome.
- Add the bot to your server/account
- Website (ToS & Privacy Policy)
- Server for Updates and Support
- Top.gg page (upvote 1Bot!)
This project is under the AGPL, so if your bot is made public, you must publish its source code under the AGPL as well.
You will have to create a config.py
file in the root directory with the following structure:
config = {
"token": str,
"error_channel": int,
"server_invite": "https://discord.gg/JGcnKxEPsW",
"bot_invite": "https://discord.com/oauth2/authorize?client_id=884080176416309288",
"website": "https://1bot.netlify.app",
"repository": str,
"emojis": {
"support": int,
"add_to_server": int,
"website": int,
},
"debug": bool
}
token
: Your Discord application's bot token. This is the only required value in the dict.error_channel
: The ID of the channel where unhandled runtime exceptions will be reported to. Not required, but I recommend setting it to get more detailed error messages.server_invite
: If set, will be used as a support server invite. Unhandled exceptions in commands will respond with this invite. Also used in the botinfo command.bot_invite
: If set, will be used as a button to invite the bot to other servers in the botinfo command.website
: If set, will be used as a button to the bot's website. It is possible that the user may expect a ToS and Privacy Policy here, so you can set it to 1Bot's website.repository
: If your bot is made public, you must publish its source code under the AGPL. Set this to your repo URL.emojis
: Dictionary of custom emoji names and IDs. If set, will be used as emojis on the buttons forserver_invite
,bot_invite
andwebsite
respectively.debug
: If set to True (or any truthy value), logging.DEBUG will be used as the log_level in Bot.run else logging.WARNING will be used. DEBUG will print a lot of information to the console.