initial commit
This commit is contained in:
commit
5b58feb646
10 files changed
+131
No files matched your search
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,38 @@
|
||||
#this is where coinflip and dice lives
|
||||
from discord.ext import commands
|
||||
import random
|
||||
|
||||
class Fun(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@commands.command()
|
||||
async def coin(self, ctx):
|
||||
result = random.choice(['🪙 Heads', '🪙 Tails'])
|
||||
await ctx.reply(f'{result}')
|
||||
|
||||
@commands.command()
|
||||
async def dice(self, ctx):
|
||||
result = random.randint(1, 6)
|
||||
await ctx.reply(f'🎲 {result}')
|
||||
|
||||
@commands.command()
|
||||
async def pp(self, ctx):
|
||||
length = random.randint(1, 15)
|
||||
pp = '8' + '=' * length + 'D'
|
||||
await ctx.reply(f"{ctx.author.mention}'s pp size: {pp}")
|
||||
|
||||
@commands.command()
|
||||
async def rank(self, ctx):
|
||||
ranks = ['Substance', 'Molecule', 'Atom', 'Proton', 'Neutron', 'Electron', 'Quark', 'Superstring', 'Singularity', 'giorgaras200']
|
||||
rank = random.choice(ranks)
|
||||
await ctx.reply(f"{ctx.author.mention}'s rank: {rank}")
|
||||
|
||||
@commands.command()
|
||||
async def aura(self, ctx):
|
||||
aura = random.randint(-1000000000, +1000000000)
|
||||
await ctx.reply(f"{ctx.author.mention}'s aura: {aura:,}")
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Fun(bot))
|
||||
@@ -0,0 +1,18 @@
|
||||
from discord.ext import commands
|
||||
|
||||
class General(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@commands.command()
|
||||
async def yuuka(self, ctx):
|
||||
await ctx.send('kanpeki!')
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(General(bot))
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_command_error(self, ctx, error):
|
||||
if isinstance(error, commands.CommandNotFound):
|
||||
return # ignore typos silently
|
||||
print(f'Error: {error}')
|
||||
@@ -0,0 +1,46 @@
|
||||
# this is where gif commands live
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class Gifs(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@commands.command()
|
||||
async def czech(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/czech.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def dogshit(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/dogshit.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def how(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/how.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def peak(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/peak.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def please(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/please.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def shoo(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/shoo.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def spell(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/spell.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def tired(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/tired.gif'))
|
||||
|
||||
@commands.command()
|
||||
async def touch(self, ctx):
|
||||
await ctx.reply(file=discord.File('gifs/touch.gif'))
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Gifs(bot))
|
||||
Reference in new issue
Block a user