Add shrug script
This commit is contained in:
parent
3d25261130
commit
dabf103a46
11
shrug.py
Normal file
11
shrug.py
Normal 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
|
Loading…
Reference in a new issue