Skip to content

Commit 4180761

Browse files
author
RedTea
authored
Merge pull request #2 from RedCokeDevelopment/master
Updated Upstream
2 parents ff08b4c + eb6b31c commit 4180761

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v2
23-
- name: Set up Python 3.8
23+
- name: Set up Python 3.8.0
2424
uses: actions/setup-python@v2
2525
with:
26-
python-version: 3.8
26+
python-version: 3.8.0
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip

Teapot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
time_start = time.perf_counter()
6565
database = teapot.managers.database.__init__()
6666
db = teapot.managers.database.db(database)
67-
db.execute('ALTER DATABASE teapot CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci')
67+
db.execute('ALTER DATABASE `' + teapot.config.db_schema() + '` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci')
6868
db.execute(
6969
'CREATE TABLE IF NOT EXISTS `guilds` (`guild_id` BIGINT, `guild_name` TINYTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci')
7070
db.execute(

teapot/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ def bot_owner():
1010
def bot_token():
1111
return os.getenv('BOT_TOKEN')
1212

13+
def osu_api_key():
14+
return os.getenv('OSU_API_KEY')
15+
16+
def trn_api_key():
17+
return os.getenv('TRN_API_KEY')
18+
1319

1420
def bot_prefix():
1521
return eval(os.getenv('BOT_PREFIX', "['/teapot ', '/tp']"))

0 commit comments

Comments
 (0)