Skip to content

Adam-Clrk/rolebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple discord bot written in Go. It assigns a role to a user when they add a reaction to a specific message.

Install

Option 1: From latest source (requires go installation)

Install Go

go get github.com/Adam-Clrk/rolebot
go install github.com/Adam-Clrk/rolebot

(Installs to ~/go/bin/)

Option 2: Download binary (easier - go installation not required)

wget "https://github.com/Adam-Clrk/rolebot/releases/download/v1.0/rolebot"
chmod +x rolebot

(Downloads to current directory) run with ./rolebot

Running

You will need a bot token from the Discord developers site

Usage:

~$ rolebot
Usage of rolebot:
  -c name
    	Channel name to use (default "roles")
  -e string
    	Emoji to use as reaction button (default "🍆")
  -o id
    	Owner user id (only this owner ID and server owner can use register command)
  -t token
    	Bot token (required)
  -v	Verbose logging

Example:

rolebot -t YOURTOKENHERE
2018/03/18 18:09:18 Running on servers:
2018/03/18 18:09:18 	test (272429559406919681)
2018/03/18 18:09:18 channel name: roles
2018/03/18 18:09:18 Join URL:
2018/03/18 18:09:18 https://discordapp.com/api/oauth2/authorize?scope=bot&permissions=268446720&client_id=(removed)
2018/03/18 18:09:18 Bot running as (removed). CTRL-C to exit.

paste the link into a web browser to add the bot to your discord server (you will need the Manage Server permission)

Command Usage

Register

Usage: register @role [message]

Command only works in a channel named roles (or other supplied with -c), and can only be used by server owner or other user supplied with -o

Examples:

register @csgo access to the csgo text chat

register @bluerole

About

Discord bot that assigns roles automatically from a reaction on a message.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages