mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 19:57:48 +00:00
Rebranding to TuneBot + updated pyproject.toml
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@ from discord.ext import commands
|
||||
from discord.ext import tasks
|
||||
from discord.ext.commands import Context
|
||||
|
||||
from bot import ChristmasBot
|
||||
from bot import TuneBot
|
||||
from context import CustomContext
|
||||
from utils.database import AutoJoin
|
||||
from utils.EmbedGenerator import EmbedGenerator
|
||||
@@ -123,6 +123,6 @@ class InformationCog(BaseCog, name="Information"):
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
||||
def setup(bot: ChristmasBot):
|
||||
def setup(bot: TuneBot):
|
||||
bot.remove_command("help")
|
||||
bot.add_cog(InformationCog(bot))
|
||||
|
||||
+4
-4
@@ -15,7 +15,7 @@ from discord.ext.commands.context import Context
|
||||
from lavalink.models import AudioTrack
|
||||
from lavalink.models import DefaultPlayer
|
||||
|
||||
from bot import ChristmasBot
|
||||
from bot import TuneBot
|
||||
from utils.classes import BaseCog
|
||||
from context import CustomContext
|
||||
from utils.database import AutoJoin
|
||||
@@ -245,8 +245,8 @@ class Music(BaseCog):
|
||||
if player.is_connected:
|
||||
await ctx.send("Already connected")
|
||||
return
|
||||
|
||||
await self.fill_player_queue(player, self.bot.config["queue_buffer_size"]+1)
|
||||
|
||||
await self.fill_player_queue(player, self.bot.config["queue_buffer_size"] + 1)
|
||||
|
||||
if not player.is_playing:
|
||||
await player.play()
|
||||
@@ -309,5 +309,5 @@ class Music(BaseCog):
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
||||
def setup(bot: ChristmasBot):
|
||||
def setup(bot: TuneBot):
|
||||
bot.add_cog(Music(bot))
|
||||
|
||||
+3
-3
@@ -12,12 +12,12 @@ import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands.context import Context
|
||||
|
||||
from bot import ChristmasBot
|
||||
from bot import TuneBot
|
||||
from utils.classes import BaseCog
|
||||
|
||||
|
||||
class OwnerCog(BaseCog):
|
||||
def __init__(self, bot: ChristmasBot):
|
||||
def __init__(self, bot: TuneBot):
|
||||
super().__init__(bot)
|
||||
self._last_result = None
|
||||
|
||||
@@ -209,5 +209,5 @@ class OwnerCog(BaseCog):
|
||||
await message.edit(content=f"```fix\n{content}\n```")
|
||||
|
||||
|
||||
def setup(bot: ChristmasBot):
|
||||
def setup(bot: TuneBot):
|
||||
bot.add_cog(OwnerCog(bot))
|
||||
|
||||
+3
-3
@@ -2,10 +2,10 @@ from discord.ext import commands
|
||||
from utils.EmbedGenerator import EmbedGenerator
|
||||
from utils.classes import BaseCog
|
||||
from utils.database import AutoJoin
|
||||
from bot import ChristmasBot
|
||||
from bot import TuneBot
|
||||
from discord.ext.commands import Context
|
||||
|
||||
from bot import ChristmasBot
|
||||
from bot import TuneBot
|
||||
from context import CustomContext
|
||||
from utils.database import AutoJoin
|
||||
from utils.EmbedGenerator import EmbedGenerator
|
||||
@@ -43,5 +43,5 @@ class SettingsCog(BaseCog, name="Settings"):
|
||||
await EmbedGenerator.Message(ctx, "Autojoin", "`disabled`")
|
||||
|
||||
|
||||
def setup(bot: ChristmasBot):
|
||||
def setup(bot: TuneBot):
|
||||
bot.add_cog(SettingsCog(bot))
|
||||
|
||||
Reference in New Issue
Block a user