浏览代码

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 年前
父节点
当前提交
cc819ce12d
共有 2 个文件被更改,包括 21 次插入20 次删除
  1. +21
    -1
      main.py
  2. +0
    -19
      roxbot/__init__.py

+ 21
- 1
main.py 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存