a discord bot that grabs quotes from a specified user and stores them in a database
Go to file
Zachary Epps d0dfd84d26 added usage string
added command to print usage

updated readme
commands now accept arguments
2018-09-01 13:48:21 -04:00
.gitignore Initial commit 2018-07-22 19:30:58 +00:00
LICENSE Initial commit 2018-07-22 19:30:58 +00:00
README.md added usage string 2018-09-01 13:48:21 -04:00
main.go added usage string 2018-09-01 13:48:21 -04:00

README.md

DiscordQuoteBot

a discord bot that grabs quotes from a specified user and stores them in a database

Invite it to a discord server and type !grab @<user> in a channel that the bot is in. To retrieve a random quote it's !quote @<user>

!quote-help or !quote-usage prints the usage for the bot

To retrieve a quote further back in the channel's history pass !grab a number along with a user:

!grab @<user> 2

will grab that user's message, 2 messages back

similarly, !quote @<user> 2 will return 2 random quotes from that user

Self hosting

To build this you'll need Go 1.10+ because of the sqlite3 dependency. You'll also have a properly set up GOPATH and PATH that includes GOPATH/bin

simply

go install git.computerfox.xyz/ztepps/DiscordQuoteBot-Go

DiscordQuoteBot-Go -t "DiscordBotToken"

or, if you want a different quote database file

DiscordQuoteBot-Go -t "token" -d "newQuotes.db"

to configure the bot to search further back for messages to grab:

DiscordQuoteBot-Go -m 50 -t "token"