https://github.com/unsignedarduino/currencybot
A economy Discord bot written in Python with interactions.py
https://github.com/unsignedarduino/currencybot
currency discord discord-bot economy economy-bot interactions python python3
Last synced: 8 months ago
JSON representation
A economy Discord bot written in Python with interactions.py
- Host: GitHub
- URL: https://github.com/unsignedarduino/currencybot
- Owner: UnsignedArduino
- Created: 2022-01-30T02:43:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T23:44:07.000Z (over 3 years ago)
- Last Synced: 2025-01-07T10:12:21.518Z (9 months ago)
- Topics: currency, discord, discord-bot, economy, economy-bot, interactions, python, python3
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CurrencyBot
A Discord bot to run an economy written in Python with
[interactions.py](https://github.com/interactions-py/library)!## Install
1. Ensure you are running [Python 3.9](https://www.python.org/downloads/) or
higher. (Only tested on 3.9)
2. Install the
[MongoDB community server](https://www.mongodb.com/try/download/community).
3. Clone the repo.
4. Create a Discord application and a Discord bot.
5. Generate an OAuth2 URL to invite your bot to a server. (Make sure the bot
has `bot` and `applications.commands` scopes!)
6. Install dependencies in
[`requirements.txt`](https://github.com/UnsignedArduino/CurrencyBot/blob/main/requirements.txt).
7. Fill in the contents of
[`example.env`](https://github.com/UnsignedArduino/CurrencyBot/blob/main/example.env)
and rename it to `.env`.## Run
1. Run [`main.py`](https://github.com/UnsignedArduino/CurrencyBot/blob/main/src/main.py)
in the
[`src`](https://github.com/UnsignedArduino/CurrencyBot/tree/main/src) directory.## Command overview
```text
/balance (member: User)
/bet
coin_flip = 1]>
dice_roll = 1]> = 1] && [<= 6]>
wheel = 1]>
/claim
hourly
daily
monthly
/github
/send = 1>
```
```text
/ denotes slash command
denotes sub command<> denotes required arguments
() denotes optional arguments[] denotes condition
&& denotes both conditions must be satisfied
|| denotes at least one condition must be satisfied
^^ denotes exactly one condition must be satisfied
```