Browse Source

moved cogs to main because its used no where else and its causing errors when the bot needs to restart after disconnecting from discord so the auto rejoin was broke due to the move to __init__

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
cc819ce12d
2 changed files with 21 additions and 20 deletions
  1. +21
    -1
      main.py
  2. +0
    -19
      roxbot/__init__.py

+ 21
- 1
main.py View File

import roxbot import roxbot
from roxbot import guild_settings as gs from roxbot import guild_settings as gs



# REMEMBER TO UNCOMMENT THE GSS LINE, ROXIE

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


# Sets up Logging that discord.py does on its own # Sets up Logging that discord.py does on its own
logger = logging.getLogger('discord') logger = logging.getLogger('discord')
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)


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

+ 0
- 19
roxbot/__init__.py View File

[Say Thanks](https://saythanks.io/to/Roxxers)""" [Say Thanks](https://saythanks.io/to/Roxxers)"""
__author__ = "Roxanne Gibson" __author__ = "Roxanne Gibson"
__version__ = "1.8.0" __version__ = "1.8.0"


# REMEMBER TO UNCOMMENT THE GSS LINE, ROXIE

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

Loading…
Cancel
Save