mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 21:27:48 +00:00
Rebranding to TuneBot + updated pyproject.toml
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
# ChristmasBot
|
||||
Christmas Music Bot
|
||||
# TuneBot
|
||||
A very configurable Discord radio
|
||||
|
||||
@@ -23,7 +23,7 @@ from discord.ext.commands.errors import NoEntryPointError
|
||||
from context import CustomContext
|
||||
|
||||
|
||||
class ChristmasBot(commands.Bot):
|
||||
class TuneBot(commands.Bot):
|
||||
lavalink: lavalink.Client
|
||||
invite_link: str
|
||||
|
||||
@@ -123,4 +123,4 @@ if __name__ == "__main__":
|
||||
pass
|
||||
|
||||
token = config.pop("token")
|
||||
ChristmasBot(config).run(token, reconnect=True)
|
||||
TuneBot(config).run(token, reconnect=True)
|
||||
|
||||
+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))
|
||||
|
||||
+3
-3
@@ -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
|
||||
@@ -246,7 +246,7 @@ class Music(BaseCog):
|
||||
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))
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
[tool.poetry]
|
||||
name = "christmasbot"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Your Name <you@example.com>"]
|
||||
name = "tunebot"
|
||||
version = "1.0.0"
|
||||
description = "A very configurable Discord radio"
|
||||
authors = ["StrNophix <curious@duck.com>", "Matthww <hello@exobot.site>"]
|
||||
license = "GPL-v3.0"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
from typing import Dict
|
||||
from discord.ext.commands import Cog
|
||||
from bot import ChristmasBot
|
||||
from bot import TuneBot
|
||||
|
||||
|
||||
class BaseCog(Cog):
|
||||
def __init__(self, bot: ChristmasBot) -> None:
|
||||
def __init__(self, bot: TuneBot) -> None:
|
||||
self.bot = bot
|
||||
|
||||
slash_descriptions: Dict[str, str] = self.bot.config["slash_descriptions"]
|
||||
|
||||
Reference in New Issue
Block a user