flagbot command - github.com/Helithumper/flagbot - Go Packages

flagbot

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

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

Go to latest
Published: Mar 28, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

README

CTF Flagbot

This is a bot created for managing CTF Discord guilds by Helithumper. The bot automatically removes CTF flags. In CTF competitions, the ability to block all flags from being sent in messages is crucial to running a fair competition. This bot will remove messages containing flag patterns and send a witty GIF in response.

Usage

> flagbot -t <bot token> -c <configuration path>
<bot token> is the Discord bot's api token as given by the [developer console](https://discordapp.com/developers).
<configuration path> is the path to the configuration directory. The configuration directory contains the following

configuration
|> responses.txt is a plaintext file containing possible responses the bot will say upon a flag match
|> gifs.txt      is a plaintext file containing links to GIFs the bot will post after removing a flag
|> patterns.txt  is a plaintext file containing Regex patterns to match flags

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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