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, # REQUIRED
"topgg_token": str,
"postgres_dsn": 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": "https://github.com/thatjar/1bot",
"emojis": {
"add_bot": int,
"website": int,
"support": int,
"wiki": int,
},
"debug": False
}token: Your Discord application's bot token. This is the only required value in the dict.topgg_token: If the bot is listed on top.gg, its auth token.postgres_dsn: Postgres database connection string for the starboard feature.error_channel: The ID of the channel where unhandled runtime exceptions will be reported to. Not required, but I recommend setting it to get error notifications directly on Discord.server_invite: If set, will be used as a support server invite. Unhandled exceptions will give the user 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.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 IDs. If set, will be used as emojis on the respective buttons in the botinfo command.debug: If set to True,logging.DEBUGwill be used as thelog_levelin Bot.run. Otherwise,logging.WARNINGwill be used. DEBUG will print a lot of information to the console, expect to see stuff printed every few seconds if enabled.
