Trying to get different gifs working from tenor

Made it so that I can call commands in general and everyone else can't
testing
sgoudham 5 years ago
parent 679cc87028
commit 3427e0930d

@ -5,8 +5,6 @@ import discord
from discord.ext import commands
from discord.ext.commands import BucketType, cooldown
channels = ["bot-commands"]
colours = [0xff0000, 0x5825ff, 0xff80ed, 0xa0f684, 0x7700cc, 0x0b04d9, 0x3d04ae, 0x000033,
0x00FFFF,
0x120A8F, 0x7FFF0, 0xcc3300,
@ -96,39 +94,59 @@ class Fun(commands.Cog):
await ctx.send(random.choice(responses))
@commands.command(aliases=["Kiss", "kiss"])
@commands.has_any_role('Hamothy')
@cooldown(1, 0.5, BucketType.channel)
async def kissing(self, ctx, target: discord.Member):
if str(ctx.channel) in channels:
if commands.has_any_role('Hamothy'):
with open('kissing.txt') as file:
kissing_array = file.readlines()
if str(ctx.channel) in channels:
# set member as the author
member = ctx.message.author
userAvatar = member.avatar_url
embed = discord.Embed(
title=f"<:blushlook1:677310734123663363> <:blushlook2:679524467248201769> | **{member.display_name}** kissed **{target.display_name}**",
colour=discord.Colour(int(random.choice(colours))))
embed.set_image(url=random.choice(kissing_array))
embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar))
await ctx.send(embed=embed)
else:
channels = ["bot commands"]
if str(ctx.channel) in channels:
with open('kissing.txt') as file:
kissing_array = file.readlines()
if str(ctx.channel) in channels:
# set member as the author
member = ctx.message.author
userAvatar = member.avatar_url
# set member as the author
member = ctx.message.author
userAvatar = member.avatar_url
embed = discord.Embed(
title=f"<:blushlook1:677310734123663363> <:blushlook2:679524467248201769> | **{member.display_name}** kissed **{target.display_name}**",
colour=discord.Colour(int(random.choice(colours))))
embed.set_image(url=random.choice(kissing_array))
embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar))
embed = discord.Embed(
title=f"<:blushlook1:677310734123663363> <:blushlook2:679524467248201769> | **{member.display_name}** kissed **{target.display_name}**",
colour=discord.Colour(int(random.choice(colours))))
embed.set_image(url=random.choice(kissing_array))
embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar))
await ctx.send(embed=embed)
await ctx.send(embed=embed)
# await self.bot.say("hugs {}".format(ctx.message.author.mention()))
# await self.bot.say("hugs {}".format(ctx.message.author.mention()))
else:
else:
message = await ctx.send(error_function())
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
# Delete the message
await message.delete()
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
# Delete the message
await message.delete()
# Bot ~8Ball command
@commands.command(aliases=['8ball', '8Ball'])

@ -1 +1,14 @@
https://media.discordapp.net/attachments/652999909989023784/718264206616559686/tenor.gif
https://media.tenor.co/videos/f46af3fba78d1141fff525755993a6df/mp4
https://media.tenor.co/videos/8f4c62f0918263dcd2c1007d2bdc1947/mp4
https://media.tenor.co/videos/bc6f0b70cd892e7fadaf57fd55f6de57/mp4
https://media.tenor.co/videos/98339586bc883859df8ceaf3e58ea0f0/mp4
https://media.tenor.co/videos/a652830893fb397048eed22ae9298211/mp4
https://media.tenor.co/videos/255e7cad70e582ffe98002ec0a3dbec6/mp4
https://media.tenor.co/videos/c8f71abd817d8575aa409fe07125e0f2/mp4
https://media.tenor.co/videos/96dead011db707609d90f67f476254db/mp4
https://media.tenor.co/videos/02b44f4d23593949d8183f2ddde546ed/mp4
https://media.tenor.co/videos/4c85265f4cd42a238a74dacf58834106/mp4
https://media.tenor.co/videos/fa19f50d07f630f5f792804c0823a671/mp4
https://media.tenor.co/videos/9177df738f6814c5f6e390289803f3a8/mp4
https://media.tenor.co/videos/d2265da5ece02f3c975cfb3681854bdd/mp4
https://media.tenor.co/videos/4a96dfe6156bc3af8ff800a475d39ee0/mp4
Loading…
Cancel
Save