Added int casting to IDs

This commit is contained in:
7trail 2023-08-29 16:54:08 -05:00 committed by GitHub
parent 5f2c80e701
commit f1f03eda56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
main.py
View file

@ -16,16 +16,16 @@ tree = app_commands.CommandTree(client)
queue = [] queue = []
guildID = os.environ['GUILD_ID'] guildID = int(os.environ['GUILD_ID'])
botID = os.environ['BOT_ID'] botID = int(os.environ['BOT_ID'])
magicForum = os.environ['MAGIC_ITEM_FORUM'] magicForum = int(os.environ['MAGIC_ITEM_FORUM'])
raceForum = os.environ['RACE_FORUM'] raceForum = int(os.environ['RACE_FORUM'])
subclassForum = os.environ['SUBCLASS_FORUM'] subclassForum = int(os.environ['SUBCLASS_FORUM'])
locationForum = os.environ['LOCATION_FORUM'] locationForum = int(os.environ['LOCATION_FORUM'])
monsterForum = os.environ['MONSTER_FORUM'] monsterForum = int(os.environ['MONSTER_FORUM'])
npcForum = os.environ['NPC_FORUM'] npcForum = int(os.environ['NPC_FORUM'])
otherForum = os.environ['OTHER_FORUM'] otherForum = int(os.environ['OTHER_FORUM'])
logChannel = os.environ['LOG_CHANNEL'] logChannel = int(os.environ['LOG_CHANNEL'])
autogen = True if os.environ['AUTOGEN'] == 'true' else False autogen = True if os.environ['AUTOGEN'] == 'true' else False
@client.event @client.event