-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfun.py
More file actions
28 lines (23 loc) · 1.28 KB
/
fun.py
File metadata and controls
28 lines (23 loc) · 1.28 KB
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
# fun.py handles everything related to fun stuff
# Contains commands: code, coomer, johnfreeman, iq, meme
import discord, random
from asyncprawcore.exceptions import Forbidden
from discord.ext import commands
# Fun commands
class Fun(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name="code", help="This is just a link for the bot's code")
async def code(self, ctx):
await ctx.channel.send("https://github.com/RGB00255/VeryCoolDiscordBot")
@commands.command(name="coomer", help="This command will return a random Dr. Coomer quote. Very cool!")
async def coomer(self, ctx):
coomerQuotes = [line.strip() for line in open("data/CoomerQuotes.txt")]
await ctx.channel.send(random.choice(coomerQuotes) + " (Very cool)")
@commands.command(name="johnfreeman", help="You know what to do with this one")
async def johnfreeman(self, ctx):
HLFLCQuotes = [line.strip() for line in open("data/HLFLC.txt")]
await ctx.channel.send(random.choice(HLFLCQuotes) + " (Very cool)")
@commands.command(name="iq", help="Determine your iq")
async def iq(self, ctx):
await ctx.channel.send("{c.message.author.mention}, your iq is: {i}, very cool!".format(c=ctx, i=str(random.randrange(-1, 229))))