Browse Source

renamed the base cog to core.

tags/v2.0.0
Roxie Gibson 5 years ago
parent
commit
5e61092ea2
3 changed files with 5 additions and 4 deletions
  1. +2
    -2
      main.py
  2. +1
    -0
      roxbot/cogs/voice.py
  3. +2
    -2
      roxbot/core.py

+ 2
- 2
main.py View File

@@ -60,8 +60,8 @@ async def on_ready():
# Load Roxbots inbuilt cogs and settings
print("Loading Bot internals...")

bot.load_extension("roxbot.base")
print("base.py Loaded")
bot.load_extension("roxbot.core")
print("core.py Loaded")

bot.load_extension("roxbot.err_handle")
print("err_handle.py Loaded")

+ 1
- 0
roxbot/cogs/voice.py View File

@@ -345,6 +345,7 @@ class Voice:
@commands.guild_only()
@commands.command()
async def pause(self, ctx):
# TODO: Add some timeouts on pause and resumes
"""Pauses the current video, if playing."""
if ctx.voice_client.is_paused():
return await ctx.send("I already am paused!")

roxbot/base.py → roxbot/core.py View File

@@ -35,7 +35,7 @@ import discord
from discord.ext import commands


class Base:
class Core:
"""Cog for commands that change the bot account and bot running."""
def __init__(self, bot_client):
self.bot = bot_client
@@ -261,4 +261,4 @@ class Base:


def setup(bot_client):
bot_client.add_cog(Base(bot_client))
bot_client.add_cog(Core(bot_client))

Loading…
Cancel
Save