Compare commits

..

No commits in common. 'd5de73cf22dc351e22ab452976a04e301bb3f71b' and 'bb5065d523ece6ee5a05c8d1163de82b856d2aa7' have entirely different histories.

  1. 3
      bot/config.py
  2. 4
      bot/db_utils.py
  3. 3
      example_config.ini

@ -11,9 +11,6 @@ KEY = config['application']['ApiKey']
# Bot's Misskey instance URL
INSTANCE = config['application']['InstanceUrl']
# SQLite Database location
DB_PATH = config['application']['DatabaseLocation']
# Extra stuff for control of the bot
# TODO: move this to db

@ -1,8 +1,8 @@
import sqlite3
import random
import config
DB_PATH = config.DB_PATH
# TODO: grab this from a config file instead
DB_PATH = "./gacha_game.db" # Adjust if needed
def get_db_connection():
'''Creates a connection to the database'''

@ -12,6 +12,3 @@ InstanceUrl = http://example.tld
; Comma separated list of fedi handles for any administrator users
DefaultAdmins = ['admin@example.tld']
; SQLite Database location
DatabaseLocation = ./gacha_game.db
Loading…
Cancel
Save