From 9948f039139d961bcb5a732e28e7fe634450a673 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Sat, 17 Apr 2021 21:44:00 +0200 Subject: [PATCH] :dice: Games container --- funcs/games/gamesContainer.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/funcs/games/gamesContainer.py b/funcs/games/gamesContainer.py index 203209a..0169cc8 100644 --- a/funcs/games/gamesContainer.py +++ b/funcs/games/gamesContainer.py @@ -1,3 +1,13 @@ +""" +Has a container for game functions. + +*Classes* +--------- + Games + Container for game functions. +""" + + from .invest import Invest from .trivia import Trivia from .blackjack import Blackjack @@ -5,8 +15,29 @@ from .connectFour import ConnectFour from .hangman import Hangman from .hex import HexGame + class Games(): + """ + Contains game classes. + + *Attributes* + ------------ + bot: Gwendolyn + The instance of Gwendolyn. + invest + Contains investment functions. + blackjack + Contains blackjack functions. + connectFour + Contains connect four functions. + hangman + Contains hangman functions. + hex + Contains hex functions + """ + def __init__(self, bot): + """Initialize the container.""" self.bot = bot self.invest = Invest(bot)