Browse Source

everything should have been sucessfully refactored into the new folder structure and the new settings object.

tags/v1.5.0
Roxie Gibson 6 years ago
parent
commit
08cf12f668
2 changed files with 16 additions and 17 deletions
  1. +11
    -11
      Roxbot/load_config.py
  2. +5
    -6
      main.py

+ 11
- 11
Roxbot/load_config.py View File

@@ -22,15 +22,15 @@ embedcolour = 0xDEADBF
# IF YOU ARE TESTING OR NOT IN THE GSS DISCORD, REMOVE "cogs.gss" FROM THE LIST

cogs = [
"roxbot.cogs.admin",
"roxbot.cogs.fun",
"roxbot.cogs.customcommands",
"roxbot.cogs.joinleave",
"roxbot.cogs.nsfw",
"roxbot.cogs.reddit",
"roxbot.cogs.selfassign",
"roxbot.cogs.trivia",
"roxbot.cogs.twitch",
"roxbot.cogs.util",
#"roxbot.cogs.gss"
"Roxbot.cogs.admin",
"Roxbot.cogs.fun",
"Roxbot.cogs.customcommands",
"Roxbot.cogs.joinleave",
"Roxbot.cogs.nsfw",
"Roxbot.cogs.reddit",
"Roxbot.cogs.selfassign",
"Roxbot.cogs.trivia",
"Roxbot.cogs.twitch",
"Roxbot.cogs.util",
#"Roxbot.cogs.gss"
]

+ 5
- 6
main.py View File

@@ -38,11 +38,11 @@ async def on_ready():
print("Discord.py version: " + discord.__version__)
print("Client logged in\n")

#print("Cogs Loaded:")
#for cog in load_config.cogs:
# bot.load_extension(cog)
# print(cog)
#print("")
print("Cogs Loaded:")
for cog in load_config.cogs:
bot.load_extension(cog)
print(cog.split(".")[2])
print("")

print("Servers I am currently in:")
for server in bot.guilds:
@@ -114,5 +114,4 @@ if __name__ == "__main__":
start_time = time.time()
bot.load_extension("Roxbot.settings.settings")
bot.load_extension("Roxbot.err_handle")
bot.load_extension("Roxbot.cogs.customcommands")
bot.run(load_config.token)

Loading…
Cancel
Save