22 lines
580 B
Python
22 lines
580 B
Python
class command():
|
|
def initialize(self, environment):
|
|
self.env = environment
|
|
self.emoji = "😢"
|
|
|
|
def shutdown(self):
|
|
pass
|
|
|
|
def setCallback(self, callback):
|
|
pass
|
|
|
|
def getDescription(self):
|
|
return "Sad face emoji"
|
|
|
|
def run(self):
|
|
self.env["runtime"]["MemoryManager"].add_value_to_first_index(
|
|
"clipboardHistory", self.emoji
|
|
)
|
|
self.env["runtime"]["OutputManager"].present_text(
|
|
"Added sad face to clipboard",
|
|
interrupt=False, flush=False
|
|
) |