mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 22:57:48 +00:00
Rebranding to TuneBot + updated pyproject.toml
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
# ChristmasBot
|
# TuneBot
|
||||||
Christmas Music Bot
|
A very configurable Discord radio
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ from discord.ext.commands.errors import NoEntryPointError
|
|||||||
from context import CustomContext
|
from context import CustomContext
|
||||||
|
|
||||||
|
|
||||||
class ChristmasBot(commands.Bot):
|
class TuneBot(commands.Bot):
|
||||||
lavalink: lavalink.Client
|
lavalink: lavalink.Client
|
||||||
invite_link: str
|
invite_link: str
|
||||||
|
|
||||||
@@ -123,4 +123,4 @@ if __name__ == "__main__":
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
token = config.pop("token")
|
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 import tasks
|
||||||
from discord.ext.commands import Context
|
from discord.ext.commands import Context
|
||||||
|
|
||||||
from bot import ChristmasBot
|
from bot import TuneBot
|
||||||
from context import CustomContext
|
from context import CustomContext
|
||||||
from utils.database import AutoJoin
|
from utils.database import AutoJoin
|
||||||
from utils.EmbedGenerator import EmbedGenerator
|
from utils.EmbedGenerator import EmbedGenerator
|
||||||
@@ -123,6 +123,6 @@ class InformationCog(BaseCog, name="Information"):
|
|||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: ChristmasBot):
|
def setup(bot: TuneBot):
|
||||||
bot.remove_command("help")
|
bot.remove_command("help")
|
||||||
bot.add_cog(InformationCog(bot))
|
bot.add_cog(InformationCog(bot))
|
||||||
|
|||||||
+2
-2
@@ -15,7 +15,7 @@ from discord.ext.commands.context import Context
|
|||||||
from lavalink.models import AudioTrack
|
from lavalink.models import AudioTrack
|
||||||
from lavalink.models import DefaultPlayer
|
from lavalink.models import DefaultPlayer
|
||||||
|
|
||||||
from bot import ChristmasBot
|
from bot import TuneBot
|
||||||
from utils.classes import BaseCog
|
from utils.classes import BaseCog
|
||||||
from context import CustomContext
|
from context import CustomContext
|
||||||
from utils.database import AutoJoin
|
from utils.database import AutoJoin
|
||||||
@@ -309,5 +309,5 @@ class Music(BaseCog):
|
|||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: ChristmasBot):
|
def setup(bot: TuneBot):
|
||||||
bot.add_cog(Music(bot))
|
bot.add_cog(Music(bot))
|
||||||
|
|||||||
+3
-3
@@ -12,12 +12,12 @@ import discord
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands.context import Context
|
from discord.ext.commands.context import Context
|
||||||
|
|
||||||
from bot import ChristmasBot
|
from bot import TuneBot
|
||||||
from utils.classes import BaseCog
|
from utils.classes import BaseCog
|
||||||
|
|
||||||
|
|
||||||
class OwnerCog(BaseCog):
|
class OwnerCog(BaseCog):
|
||||||
def __init__(self, bot: ChristmasBot):
|
def __init__(self, bot: TuneBot):
|
||||||
super().__init__(bot)
|
super().__init__(bot)
|
||||||
self._last_result = None
|
self._last_result = None
|
||||||
|
|
||||||
@@ -209,5 +209,5 @@ class OwnerCog(BaseCog):
|
|||||||
await message.edit(content=f"```fix\n{content}\n```")
|
await message.edit(content=f"```fix\n{content}\n```")
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: ChristmasBot):
|
def setup(bot: TuneBot):
|
||||||
bot.add_cog(OwnerCog(bot))
|
bot.add_cog(OwnerCog(bot))
|
||||||
|
|||||||
+3
-3
@@ -2,10 +2,10 @@ from discord.ext import commands
|
|||||||
from utils.EmbedGenerator import EmbedGenerator
|
from utils.EmbedGenerator import EmbedGenerator
|
||||||
from utils.classes import BaseCog
|
from utils.classes import BaseCog
|
||||||
from utils.database import AutoJoin
|
from utils.database import AutoJoin
|
||||||
from bot import ChristmasBot
|
from bot import TuneBot
|
||||||
from discord.ext.commands import Context
|
from discord.ext.commands import Context
|
||||||
|
|
||||||
from bot import ChristmasBot
|
from bot import TuneBot
|
||||||
from context import CustomContext
|
from context import CustomContext
|
||||||
from utils.database import AutoJoin
|
from utils.database import AutoJoin
|
||||||
from utils.EmbedGenerator import EmbedGenerator
|
from utils.EmbedGenerator import EmbedGenerator
|
||||||
@@ -43,5 +43,5 @@ class SettingsCog(BaseCog, name="Settings"):
|
|||||||
await EmbedGenerator.Message(ctx, "Autojoin", "`disabled`")
|
await EmbedGenerator.Message(ctx, "Autojoin", "`disabled`")
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: ChristmasBot):
|
def setup(bot: TuneBot):
|
||||||
bot.add_cog(SettingsCog(bot))
|
bot.add_cog(SettingsCog(bot))
|
||||||
|
|||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "christmasbot"
|
name = "tunebot"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
description = ""
|
description = "A very configurable Discord radio"
|
||||||
authors = ["Your Name <you@example.com>"]
|
authors = ["StrNophix <curious@duck.com>", "Matthww <hello@exobot.site>"]
|
||||||
license = "GPL-v3.0"
|
license = "GPL-v3.0"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
|
|||||||
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
from typing import Dict
|
from typing import Dict
|
||||||
from discord.ext.commands import Cog
|
from discord.ext.commands import Cog
|
||||||
from bot import ChristmasBot
|
from bot import TuneBot
|
||||||
|
|
||||||
|
|
||||||
class BaseCog(Cog):
|
class BaseCog(Cog):
|
||||||
def __init__(self, bot: ChristmasBot) -> None:
|
def __init__(self, bot: TuneBot) -> None:
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
slash_descriptions: Dict[str, str] = self.bot.config["slash_descriptions"]
|
slash_descriptions: Dict[str, str] = self.bot.config["slash_descriptions"]
|
||||||
|
|||||||
Reference in New Issue
Block a user