Skip to content

Latest commit

 

History

History
61 lines (33 loc) · 1.96 KB

README.rst

File metadata and controls

61 lines (33 loc) · 1.96 KB

magic

top-language

A personal discord.py utility bot for Linux.

How to use

Ensure your python is at least version 3.8. Bot functionality is not guaranteed with earlier versions of python.

Clone this repository and make it your current working directory:

git clone https://github.com/Majixed/magic && cd ./magic/

Install dependencies:

pip install -r requirements.txt

Add your bot token to a .env file in the same directory:

echo "TOKEN=<your bot's token>" > .env

To use the TeX commands, install a distribution of TeX Live from the TUG Website (recommended) or your Linux distro's package manager.

There are two more prerequisites required for this feature, imagemagick, which provides the magick and identify commands, and ghostscript. To install on Ubuntu:

sudo apt install ghostscript imagemagick

Copy config/config-example.py as config/config.py in the same directory. This will be the configuration file. You may edit the values in this file if you wish:

mv config/config-example.py config/config.py

Finally, start up the bot:

./magic

Make sure you have given the bot the privileged Message Content intent in the Discord Developer Portal, otherwise it may not be able to respond to the prefix and some features may not work.

The bot's default prefix is -, you can change it by editing the prefix variable in config/config.py. Run -help in discord to get a list of all its commands.

If you have any suggestions or queries, feel free to open an issue.

I borrowed some code from the Paradøx discord bot, check out their repo here.