First Commit
This commit is contained in:
Executable
+120
@@ -0,0 +1,120 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from utils import sql_commands as mydb
|
||||
from random import choice
|
||||
|
||||
slap = ["https://media1.tenor.com/m/tfu-SnLkaP4AAAAC/alarm-clock.gif", "https://media1.tenor.com/m/yCC2nXLRPBgAAAAC/utku-tokat.gif", "https://media.tenor.com/fZQYHVUDfckAAAAi/slap.gif", "https://media.tenor.com/TVPYqh_E1JYAAAAi/peach-goma-peach-and-goma.gif"]
|
||||
sad = ["https://media1.tenor.com/m/a-ooSHLa2lsAAAAC/im-sad.gif","https://media1.tenor.com/m/M_V1fbsCEbAAAAAd/sad-om-nom.gif", "https://media1.tenor.com/m/bwtBRKlfEzgAAAAC/sad-crying.gif", "https://media1.tenor.com/m/5t-iIxnzE8MAAAAC/sad-bear-cry.gif", "https://media1.tenor.com/m/CKez5CfynccAAAAd/looking-out-the-window-om-nom.gif"]
|
||||
hug = ["https://media1.tenor.com/m/2qjVr7KUQKgAAAAC/hug.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/hug.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/hug-cute.gif", "https://media1.tenor.com/m/KkO5IjxVQKMAAAAC/hug.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/hug.gif", "https://media1.tenor.com/m/4yPv5fJiHf4AAAAC/hug.gif", "https://media1.tenor.com/m/2qjVr7KUQKgAAAAC/hug.gif", ]
|
||||
kiss = ["https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/kiss.gif", "https://media1.tenor.com/m/KkO5IjxVQKMAAAAC/kiss.gif", "https://media1.tenor.com/m/4yPv5fJiHf4AAAAC/kiss.gif", "https://media1.tenor.com/m/2qjVr7KUQKgAAAAC/kiss.gif", ]
|
||||
pat = ["https://media1.tenor.com/m/EiIiIiIiIiIiIiIi.gif", "https://media1.tenor.com/m/7yTtTtTtTtTtTtTt.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/head-pat.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/head-pat.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/head-pat.gif", ]
|
||||
wave = ["https://media1.tenor.com/m/a-ooSHLa2lsAAAAC/bye.gif", "https://media1.tenor.com/m/a-ooSHLa2lsAAAAC/bye.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/wave.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/wave.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/wave.gif", ]
|
||||
poke = ["https://media1.tenor.com/m/EiIiIiIiIiIiIiIi.gif", "https://media1.tenor.com/m/7yTtTtTtTtTtTtTt.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/poke.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/poke.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/poke.gif", ]
|
||||
dance = ["https://media1.tenor.com/m/EiIiIiIiIiIiIiIi.gif", "https://media1.tenor.com/m/7yTtTtTtTtTtTtTt.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/dance.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/dance.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/dance.gif", ]
|
||||
cry = ["https://media1.tenor.com/m/2qjVr7KUQKgAAAAC/cry.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/cry.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/cry.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/cry.gif", ]
|
||||
laugh = ["https://media1.tenor.com/m/EiIiIiIiIiIiIiIi.gif", "https://media1.tenor.com/m/7yTtTtTtTtTtTtTt.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/laugh.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/laugh.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/laugh.gif", ]
|
||||
highfive = ["https://media1.tenor.com/m/EiIiIiIiIiIiIiIi.gif", "https://media1.tenor.com/m/7yTtTtTtTtTtTtTt.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/highfive.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/highfive.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/highfive.gif", ]
|
||||
punch = ["https://media1.tenor.com/m/EiIiIiIiIiIiIiIi.gif", "https://media1.tenor.com/m/7yTtTtTtTtTtTtTt.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/punch.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/punch.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/punch.gif", ]
|
||||
blush = ["https://media1.tenor.com/m/EiIiIiIiIiIiIiIi.gif", "https://media1.tenor.com/m/7yTtTtTtTtTtTtTt.gif", "https://media1.tenor.com/m/8v4XfJiHf4AAAAAC/blush.gif", "https://media1.tenor.com/m/9Vj8kHt3n4wAAAAC/blush.gif", "https://media1.tenor.com/m/0qJj8kVb8nQAAAAC/blush.gif", ]
|
||||
class Interactions(commands.Cog):
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
@commands.command(name="slap")
|
||||
async def _slap_gif(self, ctx, member:discord.Member, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(slap))
|
||||
embed.add_field(name=f"{ctx.author.name} slaps {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="sad")
|
||||
async def _sad_gif(self, ctx, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(sad))
|
||||
embed.add_field(name=f"{ctx.author.name} is Sad", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="hug")
|
||||
async def _hug_gif(self, ctx, member:discord.Member, *reason):
|
||||
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(hug))
|
||||
embed.add_field(name=f"{ctx.author.name} hugs {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="kiss")
|
||||
async def _kiss_gif(self, ctx, member:discord.Member, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(kiss))
|
||||
embed.add_field(name=f"{ctx.author.name} kisses {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="pat")
|
||||
async def _pat_gif(self, ctx, member:discord.Member, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(pat))
|
||||
embed.add_field(name=f"{ctx.author.name} pats {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="wave")
|
||||
async def _wave_gif(self, ctx, member:discord.Member, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(wave))
|
||||
embed.add_field(name=f"{ctx.author.name} waves at {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="poke")
|
||||
async def _poke_gif(self, ctx, member:discord.Member, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(poke))
|
||||
embed.add_field(name=f"{ctx.author.name} pokes {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="dance")
|
||||
async def _dance_gif(self, ctx, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(dance))
|
||||
embed.add_field(name=f"{ctx.author.name} dances", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="cry")
|
||||
async def _cry_gif(self, ctx, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(cry))
|
||||
embed.add_field(name=f"{ctx.author.name} cries", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="laugh")
|
||||
async def _laugh_gif(self, ctx, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(laugh))
|
||||
embed.add_field(name=f"{ctx.author.name} laughs", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="highfive")
|
||||
async def _highfive_gif(self, ctx, member:discord.Member, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(highfive))
|
||||
embed.add_field(name=f"{ctx.author.name} highfives {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="punch")
|
||||
async def _punch_gif(self, ctx, member:discord.Member, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(punch))
|
||||
embed.add_field(name=f"{ctx.author.name} punches {member.name}", value=" ".join(reason))
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
@commands.command(name="blush")
|
||||
async def _blush_gif(self, ctx, *reason):
|
||||
embed = discord.Embed()
|
||||
embed.set_image(url=choice(blush))
|
||||
embed.add_field(name=f"{ctx.author.name} blushes", value=" ".join(reason) or "No reason provided")
|
||||
await ctx.reply(embed=embed)
|
||||
|
||||
|
||||
|
||||
|
||||
async def setup(client):
|
||||
await client.add_cog(Interactions(client))
|
||||
|
||||
Reference in New Issue
Block a user