Started work on converting all commands to slash-commands

This commit is contained in:
NikolajDanger
2021-03-29 00:55:31 +02:00
parent e6e6b9b9b9
commit 232f97d0c8
11 changed files with 363 additions and 179 deletions

5
utils/__init__.py Normal file
View File

@ -0,0 +1,5 @@
"""A collections of utilities used by Gwendolyn and her functions"""
__all__ = ["Options"]
from .options import Options

9
utils/options.py Normal file
View File

@ -0,0 +1,9 @@
class Options():
def __init__(self):
with open("options.txt","r") as f:
data = f.read().splitlines()
self.testing = (data[0][8:].replace(" ","").lower() == "true")
guildIds = data[1][17:].replace(" ","").split(",")
self.guildIds = [int(i) for i in guildIds]
self.admins = data[2][7:].replace(" ","").split(",")