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

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