-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor for 2023 * added requirements --------- Co-authored-by: tyffical <>
- Loading branch information
Showing
27 changed files
with
266 additions
and
1,181 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import discord | ||
from discord import option | ||
from discord.ext import commands | ||
|
||
|
||
class Fun(commands.Cog): | ||
|
||
def __init__(self, bot): | ||
self.bot = bot | ||
|
||
@commands.slash_command(name="hug", | ||
description="everyone needs a hug once in a while <3" | ||
) | ||
@option("recipient", | ||
discord.User, | ||
description="Whom do you want to hug?", | ||
required=False) | ||
@option("reason", description="Why do you want to hug them?", required=False) | ||
async def hug(self, ctx: discord.ApplicationContext, | ||
recipient: discord.Member, reason: str): | ||
mention = recipient.id if recipient else None | ||
if not reason: | ||
reason = "no reason, you simply deserve it. yeet" | ||
if not mention: | ||
await ctx.send_response(content="Who do you want to hug?") | ||
elif mention == ctx.author.id: | ||
await ctx.send_response( | ||
content= | ||
"Does someone need a hug? [*source* <https://www.youtube.com/watch?v=TIMj0s5dvpA>]" | ||
) | ||
else: | ||
await ctx.send_response( | ||
"<@{mention}> Everbody needs a hug. It changes your metabolism:\n Reason: {reason}" | ||
.format(mention=mention, reason=reason), | ||
file=discord.File('images/hug.gif') | ||
) # change this back to the right gif at some point | ||
|
||
@commands.slash_command(name="yeet", | ||
description="yeet someone... you know you want to") | ||
@option("recipient", | ||
discord.User, | ||
description="Who do you want to yeet?", | ||
required=False) | ||
@option("reason", | ||
description="Why do you want to yeet them?", | ||
required=False) | ||
async def yeet(self, ctx: discord.ApplicationContext, | ||
recipient: discord.Member, reason: str): | ||
mention = recipient.id if recipient else None | ||
myid = ctx.author.id | ||
if not reason: | ||
reason = "'Not every yeet has a reason' - Blahajamin Franklin" | ||
if not mention: | ||
await ctx.send_response(content="Okay, but who do you want to yeet?") | ||
elif mention == myid: | ||
await ctx.send_response( | ||
content="You yeet yourself. Congratulations, you played yourself...") | ||
else: | ||
await ctx.send_response( | ||
"<@{mention}> ya been yeeted, friendo! Enjoy the flight!\n Reason: {reason}" | ||
.format(mention=mention, reason=reason), | ||
file=discord.File('./images/yeet-rafiki.gif')) | ||
|
||
|
||
def setup(bot): | ||
bot.add_cog(Fun(bot)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"blahajgang": 825807863146479657, | ||
"tyfficult": 869022453903548456 | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.