/Vigne

A Discord bot made in Go

Primary LanguageGoMIT LicenseMIT

Vigne

A Discord bot written in Go. Used by the Gabriel Dropout server.

Install

$ go get https://github.com/bela333/Vigne

Database structure

The Bold ones are required.

name Hash information description
vigne:hasConfig Should always be 1
vigne:config token, commandRegex, musicChannel, musicVoiceChannel, maxMusicDuration Hash. Simple configuration
vigne:mods Set. User IDs of moderators
vigne:roles Key is the lowercase name of the role. Value is the ID of the role. Hash. Used by the --role command
vigne:validExtractors Set. Whitelisted extractors for Youtube-DL
vigne:welcomer:main ID of the channel where welcome messages should go
vigne:welcomer:secret ID of the channel where messages of leaves and joins should go
vigne:welcomer:text:before Message, that should be displayed when a user joins. Example: Welcome %s! Have fun!
vigne:welcomer:text:after After a short period of time, the original message gets replaced by this one. Example: Welcome %s!
vigne:canPlayLive 1 or 0. Whether the music bot can play live streams or not.

Default commands

Every command starts with a prefix. With the default config there are multiple prefixes. The official one is --

Command Description
ping Pong!
role Gives the user a role according to vigne:roles. A user can only have one role from vigne:roles at a time.
help Lists all available, not hidden commands.
roles Hidden. Can only be used by moderators. Lists all roles available on the server and their IDs.
replace Hidden. Sends Hello then after a short while replaces the text with World!.

Credits

Thank you to

  • Wolke and Akio for making weeb.sh
  • Daniele122898 for making the weeb.go library

Roadmap

  • Documentation
  • Errors that are sent to the user
  • Menu system with Reactions
  • Music Bot