-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Ignacio Cuellar Tapia edited this page Oct 24, 2021
·
7 revisions
- bot.py: Core and Discord commands.
- model.py: Mysql model by SQLAlchemy.
- osu.py: Osu api communication.
- utils.py: Utils methods for everything.
- .env: Environment variables.
- requirements.txt: For python fast start.
- multioff.sql: Create mysql tables and relations.
- database_diagram.JPG: Just a diagram of the above.
- Install MySql
- Create a New User with ALL PRIVILEGES.
- Create database
mysql -u [username] -p
CREATE DATABASE MultiOff;
USE MultiOff;
- Use multioff.sql commands
- Creating a Bot Account
- Copy your TOKEN for
.env
-
Inviting Your Bot with
Administrator
permission.
- Register an OAuth application on your account settings page.
- Copy your ID client and SECRET for
.env
1.- Create a .env
file at Root Directory
DISCORD_TOKEN=...
db_host=localhost
db_user=...
db_password=...
db_database=multioff
osu_id=...
osu_secret=...
DEBUG=True
delta_time=-3
Done :)