-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEasterEggCog.py
29 lines (24 loc) · 1.21 KB
/
EasterEggCog.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import discord
from discord.ext import commands
class EasterEggCog(commands.Cog, name='Secret'):
def __init__(self, bot):
self.bot = bot
@commands.command(name='pikachu', help='this is a surprise pikachu response, custom for users')
async def pikachu(self, ctx, *arg):
# str(ctx.author) == 'ctrl-vee#8271' or
if str(ctx.author) == 'sirdragonkitty#2093':
await ctx.send("{0} is surprised".format(ctx.author.display_name))
await ctx.send(file=discord.File('images/shocked_pikachu.png'))
else:
await ctx.send('The family has not authorized you to use this command.')
@commands.command(name='pikachuadmin')
async def pikachu_admin(self, ctx, *arg):
if str(ctx.author) == 'ctrl-vee#8271':
await ctx.send("{0} is surprised".format(ctx.author.display_name))
await ctx.send(file=discord.File('images/shocked_pikachu.png'))
else:
await ctx.send('only Vee can use this command.')
@commands.command(name='imshocked')
async def pikachu_custom(self, ctx):
await ctx.send("{0} is surprised".format(ctx.author.display_name))
await ctx.send(file=discord.File('images/shocked_pikachu.png'))