Skip to content

Commit

Permalink
add utility base
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Nov 10, 2024
1 parent 2fdf8ff commit 5a1ad09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions extensions/utility/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ class UtilityBase(commands.Cog):
def __init__(self, bot: Korii):
self.bot = bot
self.description = "😎 | Lots of useful utility commands."
self.active_games = {}
7 changes: 2 additions & 5 deletions extensions/utility/vocab.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import discord
from discord.ext import commands
import random
from ._base import UtilityBase

vocabulary = {
"Wie heißt du?": "Tu t'appelles comment?",
Expand All @@ -27,11 +28,7 @@
"Ich treibe Sport/ klettere / spiele Gitarre.": "Je fais du sport / de l'escalade / de la guitare."
}

class VocabularyCommand(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.active_games = {}

class VocabularyCommand(UtilityBase):
@commands.command(name="vocab")
async def vocab(self, ctx):
if ctx.author.id in self.active_games:
Expand Down

0 comments on commit 5a1ad09

Please sign in to comment.