Maintinance 🔧

This commit is contained in:
NikolajDanger
2020-12-03 15:58:13 +01:00
parent d03ae74937
commit 1fb2df546e
6 changed files with 82 additions and 78 deletions

View File

@ -1,7 +1,7 @@
import discord, codecs, string, wolframalpha, requests, os
from discord.ext import commands
from funcs import logThis, helloFunc, roll_dice, imageFunc, nameGen, tavernGen, movieFunc, cap, findWikiPage
from funcs import logThis, helloFunc, roll_dice, imageFunc, movieFunc, cap, findWikiPage
from PIL import Image, ImageDraw, ImageFont
class MiscCog(commands.Cog):
@ -10,6 +10,7 @@ class MiscCog(commands.Cog):
"""Runs misc commands."""
self.client = client
self.client.remove_command("help")
self.generator = client.generator
@commands.command(name = "help")
async def helpCommand(self, ctx, *, content = ""):
@ -88,12 +89,12 @@ class MiscCog(commands.Cog):
# Generates a random name
@commands.command()
async def name(self, ctx):
await ctx.send(nameGen())
await ctx.send(self.generator.nameGen())
# Generates a random tavern name
@commands.command()
async def tavern(self, ctx):
await ctx.send(tavernGen())
await ctx.send(self.generator.tavernGen())
# Sets the game Gwendolyn's playing
@commands.command()