https://github.com/interactions-py/astro
🔎 Utilities made easy.
https://github.com/interactions-py/astro
discord-bot
Last synced: 9 months ago
JSON representation
🔎 Utilities made easy.
- Host: GitHub
- URL: https://github.com/interactions-py/astro
- Owner: interactions-py
- License: mit
- Created: 2020-12-20T05:19:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T22:11:03.000Z (over 1 year ago)
- Last Synced: 2025-04-06T01:22:09.333Z (9 months ago)
- Topics: discord-bot
- Language: Python
- Homepage:
- Size: 397 KB
- Stars: 23
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Astro
=====
Astro is an open-sourced, in-house bot designed for the needs of the interactions.py Discord support server. We've built this bot off of our own library.
Features
********
Some of the features Astro has include:
- "Tag" commands for storing text prompts, followed by fuzzy matched autocompletion.
- GitHub embed rendering of Pull Requests, Issues and commit hash logs.
- Commands to help manage the help channel, including post generation and archiving.
Setup
*****
Setting up this bot is simple.
First, clone this repository. Then, in order to install any dependencies that the bot uses, please run this command in the root namespace of the cloned repository:
.. code-block:: bash
pip install -U -r requirements.txt
Astro requires a ``.env`` file that contains sensitive information, like your bot token. In particular, it is looking for a file in this format:
.. code-block:: bash
TOKEN="Your bot token."
MONGO_DB_URL="A url pointing to a MongoDB database. You can create one for free on the MongoDB website, or run one yourself."
``metadata.yml`` will also likely need to be changed for your needs. The configuration on this repository is for the interactions.py server - you will need to change the IDs of each entry to the appropriate channels, roles, and tags in your server.
Finally, running the bot is as simple as:
.. code-block:: bash
python bot.py
.. _interactions.py: https://discord.gg/interactions