Added rdsp.py script

This commit is contained in:
Dionysus 2023-08-17 13:47:13 -04:00
parent 2def5bb209
commit c65832d21b
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 12 additions and 0 deletions

12
scripts/python/rdsp.py Normal file
View File

@ -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', '')