Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevboh/potential_literature
a Discord bot to enforce Oulipo constraints in servers.
https://github.com/kevboh/potential_literature
Last synced: 30 days ago
JSON representation
a Discord bot to enforce Oulipo constraints in servers.
- Host: GitHub
- URL: https://github.com/kevboh/potential_literature
- Owner: kevboh
- Created: 2022-12-23T19:46:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T13:30:23.000Z (over 1 year ago)
- Last Synced: 2024-04-15T03:06:47.582Z (7 months ago)
- Language: Elixir
- Size: 29.3 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Potential Literature
A Discord bot to add [Oulipo](https://en.wikipedia.org/wiki/Oulipo)-style constraints to servers.
## Current Rules
1. No use of the letter `E` on Tuesdays. Messages containing the fifth glyph will be deleted (and DMed privately to the author, to preserve their sin).
Prefixing a message with `!` will skip rule enforcement, for emergencies.
## Development
`cp .env.example .env` and add your bot token. You can create an application [here](https://discord.com/developers/applications). Then:
```
mix deps.get
````iex -S mix` will start your bot locally with a connected REPL.
## Deploying via Fly.io
You'll need a volume named `db` for SQLite. If you’re trying to stick inside the free tier:
```
fly volumes create db --size 1
```Set some secrets to prepare for initial release:
```
fly secrets set DISCORD_BOT_TOKEN="your-token" SUMMARY_GUILD_ID="your-guild-id" SUMMARY_CHANNEL_ID="your-main-channel-id"
```The `DATABASE_URL` should be picked up by the `fly.toml` config. Then:
```
fly launch
```