quote-bot

command module
v0.0.0-...-5c12cd3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL