Add shrug script

This commit is contained in:
Yash Karandikar 2022-04-14 09:35:32 -05:00
parent 3d25261130
commit dabf103a46

11
shrug.py Normal file
View file

@ -0,0 +1,11 @@
import weechat
weechat.register("shrug", "karx", "22.04", "Unlicense", "Send a shrug emote", "", "")
weechat.hook_command("shrug", "do shrug", "/shrug [msg]", "optional message", "", "do_shrug", "")
def do_shrug(data, buffer, args):
if args == "":
weechat.command(buffer, "¯\_(ツ)_/¯")
else:
weechat.command(buffer, f"{args} ¯\_(ツ)_/¯")
return weechat.WEECHAT_RC_OK