This commit is contained in:
Nikolaj Danger
2020-08-06 15:45:13 +02:00
parent 5c881f17c9
commit 7712c901fc
5 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,7 @@ from gameLoops import blackjackLoop, fiar, runMonopoly, runHex
class GamesCog(commands.Cog):
def __init__(self,client):
"""Runs game stuff"""
"""Runs game stuff."""
self.client = client
# Checks user balance

View File

@ -6,6 +6,7 @@ from funcs import spellFunc, monsterFunc, cap
class LookupCog(commands.Cog):
def __init__(self,client):
"""Runs lookup commands."""
self.client = client
# Looks up a spell

View File

@ -6,6 +6,7 @@ from funcs import logThis, stopServer, helloFunc, roll_dice, imageFunc, nameGen,
class MiscCog(commands.Cog):
def __init__(self,client):
"""Runs misc commands."""
self.client = client
self.client.remove_command("help")
@ -66,7 +67,7 @@ class MiscCog(commands.Cog):
async def image(self, ctx):
randomImage = imageFunc()
await ctx.send(randomImage)
# Finds a random movie
@commands.command()
async def movie(self,ctx):

View File

@ -5,6 +5,7 @@ from gameLoops import fiar, runMonopoly
class ReactionCog(commands.Cog):
def __init__(self, client):
"""Listens for reactions."""
self.client = client
@commands.Cog.listener()

View File

@ -6,6 +6,7 @@ from funcs import parseRoll, parseDestiny, critRoll, parseChar, cap
class SwCog(commands.Cog):
def __init__(self,client):
"""Runs star wars commands."""
self.client = client
# Rolls star wars dice