Praxis_Bot/commands/implemented/command_exit.py
2021-04-16 04:38:07 -04:00

25 lines
691 B
Python

from abc import ABCMeta
import time
from commands.command_base import AbstractCommand
class Command_Exit(AbstractCommand, metaclass=ABCMeta):
"""
this is the exit command.
"""
command = "exit"
def __init__(self):
super().__init__(Command_Exit.command, n_args=1, command_type=AbstractCommand.CommandType.Praxis)
self.help = ["This is a command to exit [User Module].",
"\nExample:","exit"]
self.isCommandEnabled = True
def do_command(self, bot, user_message):
bot.return_message("\nQuitting [User Module] Interface...")
time.sleep(0.2)
bot.inputLoop = False
def get_help(self):
return self.help