added command to print usage updated readme commands now accept arguments
|4 years ago|
|.gitignore||4 years ago|
|LICENSE||4 years ago|
|README.md||4 years ago|
|main.go||4 years ago|
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-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
!quote @<user> 2 will return 2 random quotes from that user
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
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"