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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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,
    "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 for server_invite, bot_invite and website 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.
Copyright © 2024 thatjar. 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

Contributors 4

  •  
  •  
  •  
  •