weechat- me personal weechat setup 🔵🟢 |
git clone git://git.acid.vegas/weechat.git |
Log | Files | Refs | Archive | README |
unifuck.py (710B)
1 # -*- coding: utf-8 -*- 2 # unifuck script for weechat - developed by acidvegas in python (https://git.acid.vegas/weechat) 3 4 import random 5 import weechat 6 7 def cmd_unifuck(data, buf, args): 8 if args[:2] == '-e': 9 msg = '' 10 for i in range(random.randint(300, 400)): 11 msg += chr(random.randint(0x1F600,0x1F64F)) 12 else: 13 msg='\u202e\u0007\x03' + str(random.randint(2,13)) 14 for i in range(random.randint(300, 400)): 15 msg += chr(random.randint(0x1000,0x3000)) 16 weechat.command(buf, '/input send ' + msg) 17 return weechat.WEECHAT_RC_OK 18 19 if weechat.register('unifuck', 'acidvegas', '1.0', 'ISC', 'random unicode spam', '', ''): 20 weechat.hook_command('unifuck', 'random unicode spam', '', '', '', 'cmd_unifuck', '')