fixing send function

This commit is contained in:
Luke Robles 2022-05-02 20:15:23 -07:00
parent c6c5d25e58
commit a6f4d13541
8 changed files with 10 additions and 12 deletions

View File

@ -7,7 +7,7 @@ import requests
class ActualUtils(commands.Cog): class ActualUtils(commands.Cog):
def __init_(self, bot): def __init__(self, bot):
self.bot: commands.Bot = bot self.bot: commands.Bot = bot
@commands.command(name="youtube", aliases=["yt"]) @commands.command(name="youtube", aliases=["yt"])

View File

@ -4,7 +4,7 @@ import animals
class AnimalFunctions(commands.Cog): class AnimalFunctions(commands.Cog):
def __init_(self, bot): def __init__(self, bot):
self.bot: commands.Bot = bot self.bot: commands.Bot = bot
@commands.command(name="redpanda") @commands.command(name="redpanda")

View File

@ -4,7 +4,7 @@ import discord
class Cheeky(commands.Cog): class Cheeky(commands.Cog):
def __init_(self, bot): def __init__(self, bot):
self.bot: commands.Bot = bot self.bot: commands.Bot = bot
@commands.command(name="decide") @commands.command(name="decide")

View File

@ -4,7 +4,7 @@ import discord
class Games(commands.Cog): class Games(commands.Cog):
def __init_(self, bot): def __init__(self, bot):
self.bot: commands.Bot = bot self.bot: commands.Bot = bot
@commands.command(name="bf5") @commands.command(name="bf5")

View File

@ -4,7 +4,7 @@ import discord
class ServerUtils(commands.Cog): class ServerUtils(commands.Cog):
def __init_(self, bot): def __init__(self, bot):
self.bot: commands.Bot = bot self.bot: commands.Bot = bot
@commands.command() @commands.command()
@ -100,11 +100,9 @@ class ServerUtils(commands.Cog):
pass pass
@commands.command(name="send") @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": if ctx.message.author.discriminator == "2528":
await bot.get_channel(152921472304676865).send( await self.bot.get_channel(int(152921472304676865)).send(message)
" ".join(ctx.message.content.split()[1:])
)
@commands.command(name="info") @commands.command(name="info")
async def info(self, ctx: commands.Context): async def info(self, ctx: commands.Context):

View File

@ -5,7 +5,7 @@ import os
class Users(commands.Cog): class Users(commands.Cog):
def __init_(self, bot): def __init__(self, bot):
self.bot: commands.Bot = bot self.bot: commands.Bot = bot
@commands.command(name="avatar") @commands.command(name="avatar")

View File

@ -5,7 +5,7 @@ import requests
class Weeb(commands.Cog): class Weeb(commands.Cog):
def __init_(self, bot): def __init__(self, bot):
self.bot: commands.Bot = bot self.bot: commands.Bot = bot
@commands.command(name="wink") @commands.command(name="wink")

View File

@ -6,7 +6,7 @@ replicaCount: 1
image: image:
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "165" tag: "167"
repository: ldooks/dragon-bot repository: ldooks/dragon-bot
pullPolicy: IfNotPresent pullPolicy: IfNotPresent