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