|
5 years ago | |
---|---|---|
.gitignore | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
main.go | 5 years ago |
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"