rolebot

command module
v0.0.0-...-cafbb89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2018 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Documentation

Overview

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL