Skip to content

marm-g/quote-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quoteBot - a simple way to store and retrieve quotes via Discord

Setup

Disclaimer: the bot isn't really made to be modular/support anyone's uses besides mine at the moment. Use with caution!

First, set up your SQLite database. The schema is provided in schema.sql, and the app expects the database to be located inside the srcdir, named quotes.db. This can be changed in the code, if you want.

Next, run go build, then execute quote-bot. The bot expects a OAuth Token to be provided via the QB_OAUTH_TOKEN environment variable.

Sample systemd service file

[Unit]
Description=Quote bot for Discord.
Requires=network.target
After=network.target

[Service]
Type=simple
Restart=always
RestartSec=10
User=quotebot
Group=bots
ExecStart=/<path to bot>/quote-bot/quote-bot
WorkingDirectory=/<path to bot>/quote-bot/
Environment="QB_OAUTH_TOKEN=<OAuth Bot Token here>"

[Install]
WantedBy=multi-user.target

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages