Git Product home page Git Product logo

magic's Introduction

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.

magic's People

Contributors

majixed avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.