:dice: Games container
This commit is contained in:
@ -1,3 +1,13 @@
|
|||||||
|
"""
|
||||||
|
Has a container for game functions.
|
||||||
|
|
||||||
|
*Classes*
|
||||||
|
---------
|
||||||
|
Games
|
||||||
|
Container for game functions.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
from .invest import Invest
|
from .invest import Invest
|
||||||
from .trivia import Trivia
|
from .trivia import Trivia
|
||||||
from .blackjack import Blackjack
|
from .blackjack import Blackjack
|
||||||
@ -5,8 +15,29 @@ from .connectFour import ConnectFour
|
|||||||
from .hangman import Hangman
|
from .hangman import Hangman
|
||||||
from .hex import HexGame
|
from .hex import HexGame
|
||||||
|
|
||||||
|
|
||||||
class Games():
|
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):
|
def __init__(self, bot):
|
||||||
|
"""Initialize the container."""
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
self.invest = Invest(bot)
|
self.invest = Invest(bot)
|
||||||
|
Reference in New Issue
Block a user