Categorygithub.com/tediferous/toby-bot
modulepackage
0.0.0-20241013201332-72aa6d5dea7e
Repository: https://github.com/tediferous/toby-bot.git
Documentation: pkg.go.dev

# README

Toby-boT

How to dev

Requirements

  1. go (atleast 1.14)
  2. (optional) docker
  3. a discord server you own

Setup

  1. Make a test bot account: https://discordpy.readthedocs.io/en/latest/discord.html
  2. Invite bot to server
  3. Take note of the bot account's token and keep it private
  4. Enable developer Mode: https://discordia.me/en/developer-mode#:~:text=Enabling%20Developer%20Mode%20is%20easy,the%20toggle%20to%20enable%20it.
  5. With dev mode enabled you can right click on various objects and copy their discord ID. Get the ID's of your: a. Spam Channel - I channel you would like to spam with messages b. Server c. Ban Role - a role that only allows someone to speak in the banned channel
  6. Install go modules with go mod download, i think?, maybe go build
  7. run with go run toby.go -t <TOKEN>

How to add THE Toby to a Server

  1. https://discord.com/oauth2/authorize?client_id=731318242903064667&scope=bot&permissions=1543576640

Flags

t - Bot Token s - Spam Channel ID for debug messages b - Ban Role ID for ban function g - Guild/Server ID

Example run command: toby -t <TOKEN> -s <SPAM ID> -b <BAN ROLE ID> -g <GUILD ID>

Commands

  1. Ban - "@Toby ban @Ted, 2h", replaces all of users role with the ban role and returns them after time period

# Functions

No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author