Move to Docker; remove Logfire; small prompt fixes
All checks were successful
CI / ci (push) Successful in 15s
All checks were successful
CI / ci (push) Successful in 15s
This commit is contained in:
parent
72ad01ff2f
commit
bd939c94c2
13 changed files with 1830 additions and 258 deletions
29
README.md
29
README.md
|
|
@ -4,31 +4,4 @@
|
|||
<img src="https://github.com/thelovinator1/ANewDawn/blob/master/.github/logo.jpg?raw=true" title="A New Dawn" alt="A New Dawn" width="300" height="300" loading="lazy">
|
||||
</p>
|
||||
|
||||
A shit Discord bot.
|
||||
|
||||
## Running via systemd
|
||||
|
||||
This repo includes a systemd unit template under `systemd/anewdawn.service` that can be used to run the bot as a service.
|
||||
|
||||
### Quick setup
|
||||
|
||||
1. Copy and edit the environment file:
|
||||
```sh
|
||||
sudo mkdir -p /etc/ANewDawn
|
||||
sudo cp systemd/anewdawn.env.example /etc/ANewDawn/ANewDawn.env
|
||||
sudo chown -R lovinator:lovinator /etc/ANewDawn
|
||||
# Edit /etc/ANewDawn/ANewDawn.env and fill in your tokens.
|
||||
```
|
||||
|
||||
2. Install the systemd unit:
|
||||
```sh
|
||||
sudo cp systemd/anewdawn.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now anewdawn.service
|
||||
```
|
||||
|
||||
3. Check status / logs:
|
||||
```sh
|
||||
sudo systemctl status anewdawn.service
|
||||
sudo journalctl -u anewdawn.service -f
|
||||
```
|
||||
A shit Discord bot.
|
||||
Loading…
Reference in a new issue