changing a bunch of commands to reply instead of just send
This commit is contained in:
parent
f92a02ada0
commit
9c91e78296
@ -21,7 +21,7 @@ class ActualUtils(commands.Cog):
|
||||
|
||||
result = "https://www.youtube.com/watch?v=" + search_results[0]
|
||||
|
||||
await ctx.send(result)
|
||||
await ctx.reply(result)
|
||||
|
||||
@commands.command(name="issue")
|
||||
async def issue(self, ctx: commands.Context):
|
||||
@ -76,7 +76,7 @@ class ActualUtils(commands.Cog):
|
||||
name="Event URL", value=track_day["event_url"], inline=False
|
||||
)
|
||||
|
||||
await ctx.send(embed=embed)
|
||||
await ctx.sereplynd(embed=embed)
|
||||
|
||||
@commands.command(name="corona", aliases=["covid"])
|
||||
async def corona(self, ctx: commands.Context, *, location=None):
|
||||
|
@ -10,54 +10,54 @@ class AnimalFunctions(commands.Cog):
|
||||
@commands.command(name="redpanda")
|
||||
async def redpanda(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_red_panda())
|
||||
await ctx.reply(animals.get_red_panda())
|
||||
|
||||
@commands.command(name="panda")
|
||||
async def panda(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_panda())
|
||||
await ctx.reply(animals.get_panda())
|
||||
|
||||
@commands.command(name="koala")
|
||||
async def koala(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_koala())
|
||||
await ctx.reply(animals.get_koala())
|
||||
|
||||
@commands.command(name="racoon")
|
||||
async def racoon(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_racoon())
|
||||
await ctx.reply(animals.get_racoon())
|
||||
|
||||
@commands.command(name="fox")
|
||||
async def fox(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_fox())
|
||||
await ctx.reply(animals.get_fox())
|
||||
|
||||
@commands.command(name="cat")
|
||||
async def cat(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_cat())
|
||||
await ctx.reply(animals.get_cat())
|
||||
|
||||
@commands.command(name="kangaroo")
|
||||
async def kangaroo(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_kangaroo())
|
||||
await ctx.reply(animals.get_kangaroo())
|
||||
|
||||
@commands.command(name="dog")
|
||||
async def dog(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_dog())
|
||||
await ctx.reply(animals.get_dog())
|
||||
|
||||
@commands.command(
|
||||
name="sheeb",
|
||||
aliases=["shiba", "shib", "shoob", "sheeber", "shoober", "shobe", "shibe"],
|
||||
)
|
||||
async def sheeb(self, ctx: commands.Context):
|
||||
await ctx.send(animals.random_sheeb())
|
||||
await ctx.reply(animals.random_sheeb())
|
||||
|
||||
@commands.command(name="birb")
|
||||
async def birb(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(animals.get_birb())
|
||||
await ctx.reply(animals.get_birb())
|
||||
|
||||
@commands.command(name="dale", aliases=["cowboy"])
|
||||
async def dale(self, ctx: commands.Context):
|
||||
@ -67,7 +67,7 @@ class AnimalFunctions(commands.Cog):
|
||||
while not dale_pic:
|
||||
try:
|
||||
dale_pic = animals.dale()
|
||||
await ctx.send(file=discord.File(dale_pic))
|
||||
await ctx.reply(file=discord.File(dale_pic))
|
||||
except Exception:
|
||||
print("File too large, trying again")
|
||||
dale_pic = None
|
||||
@ -76,7 +76,7 @@ class AnimalFunctions(commands.Cog):
|
||||
async def rat(self, ctx: commands.Context):
|
||||
import animals
|
||||
|
||||
await ctx.send(animals.get_rat())
|
||||
await ctx.reply(animals.get_rat())
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
@ -12,7 +12,7 @@ class Cheeky(commands.Cog):
|
||||
|
||||
import decide
|
||||
|
||||
await ctx.send(decide.decide(ctx.message.content))
|
||||
await ctx.reply(decide.decide(ctx.message.content))
|
||||
|
||||
@commands.command(name="simp")
|
||||
async def simp(self, ctx: commands.Context):
|
||||
@ -25,7 +25,7 @@ class Cheeky(commands.Cog):
|
||||
with open("/app/simp.jpg", "wb") as f:
|
||||
f.write(response.content)
|
||||
await ctx.message.delete()
|
||||
await ctx.send(file=discord.File("/app/simp.jpg"))
|
||||
await ctx.reply(file=discord.File("/app/simp.jpg"))
|
||||
|
||||
@commands.command(name="horny")
|
||||
async def horny(self, ctx: commands.Context):
|
||||
@ -38,7 +38,7 @@ class Cheeky(commands.Cog):
|
||||
with open("/app/horny.jpg", "wb") as f:
|
||||
f.write(response.content)
|
||||
await ctx.message.delete()
|
||||
await ctx.send(file=discord.File("/app/horny.jpg"))
|
||||
await ctx.reply(file=discord.File("/app/horny.jpg"))
|
||||
|
||||
@commands.command(name="wasted")
|
||||
async def wasted(self, ctx: commands.Context):
|
||||
@ -51,7 +51,7 @@ class Cheeky(commands.Cog):
|
||||
with open("/app/wasted.jpg", "wb") as f:
|
||||
f.write(response.content)
|
||||
await ctx.message.delete()
|
||||
await ctx.send(file=discord.File("/app/wasted.jpg"))
|
||||
await ctx.reply(file=discord.File("/app/wasted.jpg"))
|
||||
|
||||
@commands.command(name="verify")
|
||||
async def verify(self, ctx: commands.Context):
|
||||
@ -72,7 +72,7 @@ class Cheeky(commands.Cog):
|
||||
|
||||
import get_from_reddit
|
||||
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
embed=core_utils.generate_embed(
|
||||
embed_title=">implying this actually happened",
|
||||
embed_color=discord.Color.green(),
|
||||
@ -92,19 +92,19 @@ class Cheeky(commands.Cog):
|
||||
if "+" in ctx.message.content:
|
||||
number_to_add = int(ctx.message.content.split("+")[-1])
|
||||
|
||||
await ctx.send(embed=dice.roll(number_of_die, sides, number_to_add))
|
||||
await ctx.reply(embed=dice.roll(number_of_die, sides, number_to_add))
|
||||
|
||||
@commands.command(name="excuse")
|
||||
async def excuse(self, ctx: commands.Context):
|
||||
import excuse
|
||||
|
||||
await ctx.send(excuse.get_excuse())
|
||||
await ctx.reply(excuse.get_excuse())
|
||||
|
||||
@commands.command(name="ask")
|
||||
async def ask(self, ctx: commands.Context):
|
||||
import questions
|
||||
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
questions.answer_question(ctx.message.content),
|
||||
)
|
||||
|
||||
@ -132,7 +132,7 @@ class Cheeky(commands.Cog):
|
||||
import wallpaper
|
||||
|
||||
async with ctx.message.channel.typing():
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
embed=core_utils.generate_embed(
|
||||
embed_url=wallpaper.get_wall(ctx.message.content)
|
||||
)
|
||||
@ -145,7 +145,7 @@ class Cheeky(commands.Cog):
|
||||
|
||||
result = nft.get_nft()
|
||||
|
||||
await ctx.send(result)
|
||||
await ctx.reply(result)
|
||||
|
||||
@commands.command(name="8ball")
|
||||
async def eight_ball(self, ctx: commands.Context):
|
||||
@ -154,14 +154,14 @@ class Cheeky(commands.Cog):
|
||||
|
||||
result = eight_ball.check_8ball(ctx.message.content)
|
||||
|
||||
await ctx.send(":8ball: %s :8ball:" % result)
|
||||
await ctx.reply(":8ball: %s :8ball:" % result)
|
||||
|
||||
@commands.command(name="flows")
|
||||
async def flows(self, ctx: commands.Context):
|
||||
import river_stats
|
||||
|
||||
result = river_stats.get_stats()
|
||||
await ctx.send(embed=result)
|
||||
await ctx.reply(embed=result)
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
@ -12,7 +12,7 @@ class Games(commands.Cog):
|
||||
import bf5
|
||||
|
||||
try:
|
||||
await ctx.send(embed=bf5.get_player(ctx.message.content.split()[1]))
|
||||
await ctx.reply(embed=bf5.get_player(ctx.message.content.split()[1]))
|
||||
except Exception:
|
||||
await ctx.send(
|
||||
"I encountered an error while searching for that player.\nPlease check that your player name is spelled correctly"
|
||||
@ -25,7 +25,7 @@ class Games(commands.Cog):
|
||||
async with ctx.message.channel.typing():
|
||||
try:
|
||||
name = "%s %s" % (first_name, last_name)
|
||||
await ctx.send(embed=ffxiv.make_request(name=name, server=server))
|
||||
await ctx.reply(embed=ffxiv.make_request(name=name, server=server))
|
||||
except Exception:
|
||||
await ctx.send(
|
||||
"I encountered an error while searching for that player.\nPlease check that your player name and server are spelled correctly"
|
||||
|
@ -9,7 +9,7 @@ class ServerUtils(commands.Cog):
|
||||
|
||||
@commands.command()
|
||||
async def ping(self, ctx: commands.Context):
|
||||
await ctx.send("pong")
|
||||
await ctx.reply("pong")
|
||||
|
||||
@commands.command(name="invite")
|
||||
async def invite(self, ctx: commands.Context):
|
||||
@ -33,7 +33,7 @@ class ServerUtils(commands.Cog):
|
||||
max_age=3600,
|
||||
temporary=temp,
|
||||
)
|
||||
await ctx.send("Check your DMs")
|
||||
await ctx.reply("Check your DMs")
|
||||
await ctx.author.send(invite)
|
||||
|
||||
@commands.command(name="emoji")
|
||||
@ -46,7 +46,7 @@ class ServerUtils(commands.Cog):
|
||||
|
||||
emoji_staging = "/tmp/emoji"
|
||||
try:
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
"emoji successfully uploaded! Heres how it looks in a sentence {}\nUse it with `:{}:`".format(
|
||||
await ctx.message.guild.create_custom_emoji(
|
||||
name=emoji_name,
|
||||
@ -58,7 +58,7 @@ class ServerUtils(commands.Cog):
|
||||
)
|
||||
)
|
||||
except Exception:
|
||||
await ctx.send("I wasnt able to upload that image as an emoji. Sorry")
|
||||
await ctx.reply("I wasnt able to upload that image as an emoji. Sorry")
|
||||
os.remove(emoji_staging)
|
||||
return
|
||||
|
||||
@ -87,7 +87,7 @@ class ServerUtils(commands.Cog):
|
||||
@commands.command(name="source")
|
||||
async def source(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send("https://git.luker.gq/ldooks/dragon-bot")
|
||||
await ctx.reply("https://git.luker.gq/ldooks/dragon-bot")
|
||||
|
||||
@commands.command(name=".")
|
||||
async def roles(self, ctx: commands.Context):
|
||||
@ -131,7 +131,7 @@ class ServerUtils(commands.Cog):
|
||||
)
|
||||
embed.set_thumbnail(url=server.icon)
|
||||
|
||||
await ctx.send(embed=embed)
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="purge")
|
||||
async def purge(self, ctx: commands.Context, count=None):
|
||||
@ -203,12 +203,12 @@ class ServerUtils(commands.Cog):
|
||||
name=channel_role_name, bitrate=96000, overwrites=overwrites
|
||||
)
|
||||
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
":white_check_mark: Created a role + voice channel for %s"
|
||||
% role.mention
|
||||
)
|
||||
except Exception as e:
|
||||
await ctx.send(":x: Error: %s :x:" % e)
|
||||
await ctx.reply(":x: Error: %s :x:" % e)
|
||||
|
||||
@commands.command(name="help")
|
||||
async def help(self, ctx: commands.Context, method):
|
||||
@ -216,9 +216,9 @@ class ServerUtils(commands.Cog):
|
||||
import help_methods
|
||||
|
||||
if len(ctx.message.content.split()) > 1:
|
||||
await ctx.send(help_methods.parse_message(method))
|
||||
await ctx.reply(help_methods.parse_message(method))
|
||||
else:
|
||||
await ctx.send(embed=help_methods.get_help_embed(bot))
|
||||
await ctx.reply(embed=help_methods.get_help_embed(bot))
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
@ -10,7 +10,7 @@ class Users(commands.Cog):
|
||||
|
||||
@commands.command(name="avatar")
|
||||
async def avatar(self, ctx: commands.Context, user: discord.Member):
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
embed=core_utils.generate_embed(
|
||||
embed_title="{}#{}".format(user.name, user.discriminator),
|
||||
embed_url=user.avatar,
|
||||
|
@ -10,7 +10,7 @@ class Weeb(commands.Cog):
|
||||
|
||||
@commands.command(name="wink")
|
||||
async def wink(self, ctx: commands.Context):
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
embed=core_utils.generate_embed(
|
||||
embed_url=requests.get("https://some-random-api.ml/animu/wink").json()[
|
||||
"link"
|
||||
@ -21,7 +21,7 @@ class Weeb(commands.Cog):
|
||||
@commands.command(name="smug")
|
||||
async def smug(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
embed=core_utils.generate_embed(
|
||||
embed_url=get_from_reddit.get_image("smuganimegirls")
|
||||
)
|
||||
@ -30,7 +30,7 @@ class Weeb(commands.Cog):
|
||||
@commands.command(name="pout")
|
||||
async def pout(self, ctx: commands.Context):
|
||||
|
||||
await ctx.send(
|
||||
await ctx.reply(
|
||||
embed=core_utils.generate_embed(
|
||||
embed_url=get_from_reddit.get_image("pouts")
|
||||
)
|
||||
@ -41,7 +41,7 @@ class Weeb(commands.Cog):
|
||||
from owotext import OwO
|
||||
|
||||
uwu = OwO()
|
||||
await ctx.send(uwu.whatsthis(" ".join(ctx.message.content.split()[1:])))
|
||||
await ctx.reply(uwu.whatsthis(" ".join(ctx.message.content.split()[1:])))
|
||||
|
||||
@commands.command(name="lewd")
|
||||
async def lewd(self, ctx: commands.Context):
|
||||
|
@ -6,7 +6,7 @@ replicaCount: 1
|
||||
|
||||
image:
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: "186"
|
||||
tag: "188"
|
||||
repository: ldooks/dragon-bot
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user