discord-repl-0.0.dev1677500204
توضیحات
Discord REPL
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | discord-repl-0.0.dev1677500204 |
| نام | discord-repl |
| نسخه کتابخانه | 0.0.dev1677500204 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ettore Leandro Tognoli |
| ایمیل نویسنده | ettoreleandrotognoli@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/discord-repl/ |
| مجوز | Apache License 2.0 |
# Discord REPL
A discord bot to run code in containers.
---
## Development
Requirements
- python 3.10
- docker
---
Install pipenv
```sh
python -m pip install --user pipenv
```
---
Prepare the environment
```sh
pipenv install --dev
```
---
Run the tests
```sh
pipenv run test
```
---
## Running the bot
First of all you will need to create a application/bot on discord. Here are some usefully links:
- <https://discord.com/developers/docs/intro>
- <https://discord.com/developers/applications>
Get your bot token and add it to `.env` or as variable when running the bot.
---
Using `.env`.
Add to the `.env`
```sh
echo "DISCORD_TOKEN=... >> .env
```
Run the bot
```sh
pipenv run bot
```
Take care of your token, don't commit it.
---
Using as variable
```sh
DISCORD_TOKEN=... pipenv run bot
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl discord-repl-0.0.dev1677500204:
pip install discord-repl-0.0.dev1677500204.whl
نصب پکیج tar.gz discord-repl-0.0.dev1677500204:
pip install discord-repl-0.0.dev1677500204.tar.gz