23 lines
625 B
Python
23 lines
625 B
Python
from abc import ABCMeta
|
|
|
|
from commands.command_base import AbstractCommand
|
|
|
|
import utilities_script as utility
|
|
|
|
class Command_Clear(AbstractCommand, metaclass=ABCMeta):
|
|
"""
|
|
this is the clear command.
|
|
"""
|
|
command = "clear"
|
|
|
|
def __init__(self):
|
|
super().__init__(Command_Clear.command, n_args=1, command_type=AbstractCommand.CommandType.Praxis)
|
|
self.help = ["This is a command to clear the screen.",
|
|
"\nExample:","clear"]
|
|
self.isCommandEnabled = True
|
|
|
|
def do_command(self, bot, user_message):
|
|
utility.clearScreen()
|
|
|
|
def get_help(self):
|
|
return self.help |