From a6f4d13541cbb66bf028f5ed7ea4fe3ecc77a951 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Mon, 2 May 2022 20:15:23 -0700 Subject: [PATCH] fixing send function --- app/cogs/actual_utils.py | 2 +- app/cogs/animal_functions.py | 2 +- app/cogs/cheeky_functions.py | 2 +- app/cogs/game_apis.py | 2 +- app/cogs/server_utils.py | 8 +++----- app/cogs/user_functions.py | 2 +- app/cogs/weeb_shit.py | 2 +- helm/values.yaml | 2 +- 8 files changed, 10 insertions(+), 12 deletions(-) diff --git a/app/cogs/actual_utils.py b/app/cogs/actual_utils.py index 09f0b6a6..0ce83603 100644 --- a/app/cogs/actual_utils.py +++ b/app/cogs/actual_utils.py @@ -7,7 +7,7 @@ import requests class ActualUtils(commands.Cog): - def __init_(self, bot): + def __init__(self, bot): self.bot: commands.Bot = bot @commands.command(name="youtube", aliases=["yt"]) diff --git a/app/cogs/animal_functions.py b/app/cogs/animal_functions.py index 6d170e61..9f2e332f 100644 --- a/app/cogs/animal_functions.py +++ b/app/cogs/animal_functions.py @@ -4,7 +4,7 @@ import animals class AnimalFunctions(commands.Cog): - def __init_(self, bot): + def __init__(self, bot): self.bot: commands.Bot = bot @commands.command(name="redpanda") diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index 93a7775f..9c0bbf47 100644 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -4,7 +4,7 @@ import discord class Cheeky(commands.Cog): - def __init_(self, bot): + def __init__(self, bot): self.bot: commands.Bot = bot @commands.command(name="decide") diff --git a/app/cogs/game_apis.py b/app/cogs/game_apis.py index 44aae44e..fa8c710e 100644 --- a/app/cogs/game_apis.py +++ b/app/cogs/game_apis.py @@ -4,7 +4,7 @@ import discord class Games(commands.Cog): - def __init_(self, bot): + def __init__(self, bot): self.bot: commands.Bot = bot @commands.command(name="bf5") diff --git a/app/cogs/server_utils.py b/app/cogs/server_utils.py index 31173c63..38fb20b2 100644 --- a/app/cogs/server_utils.py +++ b/app/cogs/server_utils.py @@ -4,7 +4,7 @@ import discord class ServerUtils(commands.Cog): - def __init_(self, bot): + def __init__(self, bot): self.bot: commands.Bot = bot @commands.command() @@ -100,11 +100,9 @@ class ServerUtils(commands.Cog): pass @commands.command(name="send") - async def send(self, ctx: commands.Context): + async def send(self, ctx: commands.Context, *, message): if ctx.message.author.discriminator == "2528": - await bot.get_channel(152921472304676865).send( - " ".join(ctx.message.content.split()[1:]) - ) + await self.bot.get_channel(int(152921472304676865)).send(message) @commands.command(name="info") async def info(self, ctx: commands.Context): diff --git a/app/cogs/user_functions.py b/app/cogs/user_functions.py index 6cf40cda..8f152af0 100644 --- a/app/cogs/user_functions.py +++ b/app/cogs/user_functions.py @@ -5,7 +5,7 @@ import os class Users(commands.Cog): - def __init_(self, bot): + def __init__(self, bot): self.bot: commands.Bot = bot @commands.command(name="avatar") diff --git a/app/cogs/weeb_shit.py b/app/cogs/weeb_shit.py index 9dfa302b..d53e3de8 100644 --- a/app/cogs/weeb_shit.py +++ b/app/cogs/weeb_shit.py @@ -5,7 +5,7 @@ import requests class Weeb(commands.Cog): - def __init_(self, bot): + def __init__(self, bot): self.bot: commands.Bot = bot @commands.command(name="wink") diff --git a/helm/values.yaml b/helm/values.yaml index 8e9acf63..eea29aa7 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: # Overrides the image tag whose default is the chart appVersion. - tag: "165" + tag: "167" repository: ldooks/dragon-bot pullPolicy: IfNotPresent