Quellcode durchsuchen

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 vor 6 Jahren
Ursprung
Commit
cc819ce12d
2 geänderte Dateien mit 21 neuen und 20 gelöschten Zeilen
  1. +21
    -1
      main.py
  2. +0
    -19
      roxbot/__init__.py

+ 21
- 1
main.py Datei anzeigen

@@ -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 Datei anzeigen

@@ -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"
]

Laden…
Abbrechen
Speichern