-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from perpetualcacophony/main
merge 1.3 to prod
- Loading branch information
Showing
17 changed files
with
973 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 🌸 slimebot 🌸 | ||
slimebot is a small self-hosted discord bot made for a private server with friends. | ||
|
||
# 🐞 coming from the server? | ||
hey, thanks for checking out the code!! if you have a feature to request or a bug to report, you can always dm it to me directly, but i would really really appreciate if you put it in the [issues](https://github.com/perpetualcacophony/slimebot/issues) page. | ||
|
||
## want to contribute? | ||
developing this bot *is* fun, but does take a good amount of time and effort, so contributing would be super helpful!! the bot itself is entirely written in rust, which i can absolutely help you learn if you're interested, but in the future there might be additional features that involve web development. | ||
|
||
## what's with slimebot-dev? | ||
slimebot-dev also runs on this codebase! slimebot proper runs on an actual webserver that lets it stay up all the time, while slimebot-dev just runs off my computer. additionally, slimebot proper runs on the stable code in the [`prod`](https://github.com/perpetualcacophony/slimebot/tree/prod) branch, while slimebot-dev runs on whatever unstable branch i'm currently writing and testing. slimebot-dev exists so i can develop the bot while keeping your experience using slimebot relatively seamless! | ||
|
||
# 🐞 coming from somewhere else? | ||
hi!! this bot (and the server it's built for) is riddled with in-jokes and dumb features. it *is* a bot that *does* work—the [`prod`](https://github.com/perpetualcacophony/slimebot/tree/prod) branch is, at least—and you could probably deploy it to your own hardware, but you're probably just better off taking what you like from the codebase. unless you *want* the bot to post [this image of joe biden](https://files.catbox.moe/v7itt0.webp) every time someone says "L", i guess? | ||
|
||
## can i use this bot in my own server? | ||
yes and no. you're completely free to compile and run the code yourself, or use the docker image at [`ghcr.io/perpetualcacophony/slimebot:prod`](https://ghcr.io/perpetualcacophony/slimebot) (check out the example [`compose.yaml`](example-compose.yaml)!) however, you'll need to use your own bot user—the bot application i operate is private server-only, which is why you won't find any invite link for slimebot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# example slimebot compose.toml | ||
# IMPORTANT: docker compose will accept `compose.yaml`, NOT `example-compose.yaml` | ||
|
||
services: | ||
db: | ||
image: mongo | ||
restart: always | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: #mongodb root username | ||
MONGO_INITDB_ROOT_PASSWORD: #mongodb root password | ||
ports: | ||
- 27017:27017 #mongodb port | ||
|
||
bot: | ||
build: . | ||
restart: always | ||
volumes: | ||
- ./.env:/.env #mount .env to /.env in the container | ||
- ./slimebot.toml:/slimebot.toml #mount slimebot.toml to /slimebot.toml in the container | ||
ports: | ||
- 443:443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# example slimebot .env | ||
# IMPORTANT: slimebot will accept `.env`, NOT `example-dotenv.env` | ||
|
||
RUST_LOG = "slimebot,tracing_unwrap" # crates allowed to emit logs - should not need editing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# example slimebot.toml | ||
# IMPORTANT: slimebot will accept `slimebot.toml`, NOT `example-slimebot.toml` | ||
|
||
[bot] | ||
token = "your token here" | ||
id = 1111111111111111111 #bot id | ||
activity = "playing on YOUR SERVER" #activity options: 'playing', 'listening to', 'watching', 'competing' | ||
prefix = ".." | ||
|
||
[db] | ||
url = "localhost:27017" #mongodb host (without `mongodb://`) | ||
username = "mongodb username" | ||
password = "mongodb password" | ||
|
||
[watchers] | ||
allow_by_default = true #enables watchers for all channels not specifically disallowed | ||
|
||
[[watchers.channels]] | ||
id = 1111111111111111111 #channel id | ||
allow = false #disables watchers for this channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.