-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py-example
69 lines (58 loc) · 1.92 KB
/
config.py-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/env python
# [ REQUIRED! ]
# Obtained from https://discord.com/developers/applications
token = "YOUR_BOT_TOKEN_GOES_HERE"
# To change default prefix, can be done in source code but for easier
# access you can change it here
prefix = ">"
# Bot master(s), required to use master/dev only commands! (Unless
# you're the bot application's owner)
botMasters = ["0000000000000000", "0000000000000001"]
# Optional, but if you want error to be reported to a guild channel you can
# set it here
# Uncomment to use it
#issueChannel = "0000000000000000"
# Optional, OpenWeather's API Key, required if you want weather command to work
# Uncomment to use it
#openweather = "0000000000000000000000000000000"
# Optional, Internal API Host, required for some heavy command or easily break commands
# Uncomment to use it
#internalApiHost = "127.0.0.1:2264"
# Optional, set the bot's information (Cosmetic)
# Uncomment to use it
#author = "YourName#1234"
#links = {"Source Code": "https://github.com/username/yourbot"}
# Optional, ZeroMQ for Dashboard
# Uncomment to use it
#zmqPorts = {
# "PUB": 5554,
# "SUB": 5555,
# "REP": 5556,
#}
# [ REQUIRED! ]
# Database URL
# (visit `https://tortoise.github.io/databases.html#db-url` to learn more)
#
# Tested: SQLite, PostgreSQL, CockroachDB's PostgreSQL
#
# URL Examples:
# sql = sqlite:///data/database.db
# sql = postgres://localhost/example?ssl=true
# sql = mysql://localhost/example?min_size=5&max_size=20
sql = "DB_TYPE://PATH_OR_CREDENTIALS/DB_NAME?PARAM1=value&PARAM2=value"
# Advanced Tortoise ORM settings
# Uncomment only if you know what you're doing!
#TORTOISE_ORM = {
# "connections": {"default": sql},
# "apps": {
# "models": {
# "models": ["src.main.core.db", "aerich.models"],
# "default_connection": "default",
# },
# },
#}
# Where to store TortoiseORM's DB migrations
#
# Example:
# migrationDir = "data/migrations"
migrationDir = "migrations"