Skip to content
/ 1bot Public

A Discord bot that gives you a variety of features and utilities without having to leave Discord.

License

Notifications You must be signed in to change notification settings

thatjar/1bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

343 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1Bot - One bot, several uses.

Banner

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.

Self-hosting

This project is under the AGPL, so if your bot is made public, you must publish its source code under the AGPL as well.

Instructions

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.DEBUG will be used as the log_level in Bot.run. Otherwise, logging.WARNING will be used. DEBUG will print a lot of information to the console, expect to see stuff printed every few seconds if enabled.
Copyright © 2024-present thatjar, licensed under the GNU AGPL v3. Not affiliated with Discord, Inc.

About

A Discord bot that gives you a variety of features and utilities without having to leave Discord.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors 5

Languages