Pārlūkot izejas kodu

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 pirms 6 gadiem
vecāks
revīzija
cc819ce12d
2 mainītis faili ar 21 papildinājumiem un 20 dzēšanām
  1. +21
    -1
      main.py
  2. +0
    -19
      roxbot/__init__.py

+ 21
- 1
main.py Parādīt failu

@@ -36,6 +36,26 @@ from discord.ext import commands
import roxbot
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
logger = logging.getLogger('discord')
logger.setLevel(logging.INFO)
@@ -66,7 +86,7 @@ async def on_ready():

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

+ 0
- 19
roxbot/__init__.py Parādīt failu

@@ -52,22 +52,3 @@ __description__ = """RoxBot, A Discord Bot made by a filthy Mercy Main. Built wi
[Say Thanks](https://saythanks.io/to/Roxxers)"""
__author__ = "Roxanne Gibson"
__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"
]

Notiek ielāde…
Atcelt
Saglabāt