Metadata-Version: 2.1
Name: discord-repl
Version: 0.0.dev1676634032
Summary: Discord REPL
Author: Ettore Leandro Tognoli
Author-email: ettoreleandrotognoli@gmail.com
License: Apache License 2.0
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# 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
```
