Repository hosting all scripted auto responses for /reg/nal
All scripted auto responses are stored in this repository. This repository is used to test the auto responses against a set of messages. This repo compiles all auto responses with mypyc to increase speed and ensure type safety.
- invite /reg/nal to your server
- browse the auto responses to find one you want to add
- run /config
- navigate to guild > auto_responses
- click on the
scripted auto responses
button - click on
import by name
and type the name of file in auto_responses you want to import (without the .py extension) - that's it! the auto response should now be active in your server
- Python 3.11.x
- mypyc
- install the requirements listed above
- fork this repository and clone it to your local machine
- create a virtual environment with
python -m venv .venv
oruv venv
if you are using uv (recommended) - enter the virtual environment with
source .venv/bin/activate
- install python requirements with
pip install -r requirements.txt
oruv pip install -r requirements.txt
if you are using uv (recommended) - copy examples from the
example_files
directory into the root directory - create a new file in the
auto_responses
directory with a function named and change theresponse
attribute of the auto response in theauto_response.py
you created to the file name - configure the auto response in the
auto_response.py
file as needed - configure the test messages in
messages.py
as needed - test by running
python main.py
- if the test passes, compile the auto response with
mypyc ./auto_responses
- edit the README in the
auto_responses
directory to include a description of the auto response and the author(s) of the auto response - commit the changes to the repository and submit a pull request to the main repository
- i am pretty restrictive on what I accept as auto responses. But I'll allow almost anything as long as it's not harmful.
- if you are unsure about something, feel free to ask me in the /reg/nal development server
- auto responses that take longer than 5 seconds will not respond.
- by submitting a pull request, you agree that your code will be licensed under the AGPL-3.0 license
- if you want/need a third party library, first, make sure it's supported by mypyc, then ask me in the development server and i might add it