From c65832d21b898e3810fc4e8ccf5cbdffacbf8653 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Thu, 17 Aug 2023 13:47:13 -0400 Subject: [PATCH] Added rdsp.py script --- scripts/python/rdsp.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/python/rdsp.py diff --git a/scripts/python/rdsp.py b/scripts/python/rdsp.py new file mode 100644 index 0000000..947d093 --- /dev/null +++ b/scripts/python/rdsp.py @@ -0,0 +1,12 @@ +# Random Spaces Weechat Script - Developed by Acidvegas in Python (https://git.acid.vegas/weechat) + +import weechat +import random + +def cmd_rdsp(data, buf, args): + num_spaces = random.randint(1, 100) + weechat.command(buf, '/input send \x03' + ' '*num_spaces + args) + return weechat.WEECHAT_RC_OK + +if weechat.register('rdsp', 'acidvegas', '1.0', 'ISC', 'prefix a message with random spaces', '', ''): + weechat.hook_command('rdsp', 'Generate random spaces', '', '', '', 'cmd_rdsp', '')