mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-17 06:56:03 +01:00
revert all permission changes
This commit is contained in:
@@ -9,21 +9,12 @@ class InvalidTokenException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidConfigException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def main() -> None:
|
||||
DISCORD_TOKEN = os.getenv("DISCORD_TOKEN")
|
||||
if not DISCORD_TOKEN:
|
||||
raise InvalidTokenException("A Discord token was not set.")
|
||||
|
||||
with open("config.toml", "rb") as config_file:
|
||||
if "[permissions]" in config_file.read():
|
||||
raise InvalidConfigException(
|
||||
"The format for permissions has changed; please check the new example config."
|
||||
)
|
||||
|
||||
config = Config(tomllib.load(config_file))
|
||||
|
||||
bot = Bot(config)
|
||||
|
||||
Reference in New Issue
Block a user