A discord bot that automatically unarchives threads as soon as they're archived.
Use Lazarus Bot in discord
-
Invite the bot to the channel in which you'd like it to revive threads
-
Ensure the bot has the
Manage Messages and Threads
permission in the channel -
Use
/keeepalive-on
inside of a thread if you'd like Lazarus Bot to automatically revive threads -
Use
/keeepalive-off
inside of a thread if you'd like Lazarus Bot to stop automatically reviving threads
Python: 3.9+
Dependency Manager: Poetry
Discord package: Py-Cord
Unit Test Runner: Pytest
To deploy this project:
- Template this repo
- Clone and
cd
into the repo - Run
make setup
to automatically installpoetry
- Run
make update && make install
to update and install production dependencies - Alternatively, you can run
make install-dev
ormake install-test
to install all dev dependencies or test dependencies respectively
To run this project, you will need to add the following environment variables to your .env file
- Clone the
.env-sample
file and rename it.env
- If you're using a
.env
file, then the environment variables will be set automatically(thanks to dotenv)- Otherwise you can export each of the environment variables manually
export bot_token=<bot_token>
bot_token
: String
redis_user
: String
redis_password
: String
redis_host
: String
redis_port
: Int