Use block2discord
to create Discord bots in a block-like programming language. To run the code, a program will translate it into Python using discord.py
.
- Clone this repository with
git clone
- Install npm dependencies with
npm install
- Start the server with
npx pxt serve
All steps take place within the translator/
folder
- Install pip dependencies with
pip install -r requirements.txt
- Create a file called
block2discord.in
and add your Python code from the editor - Run the translator with
python translator.py
orpython3 translator.py