mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Update things, delete things, add things
This commit is contained in:
1 parent
772995c0ff
commit
a8b397a44f
31 files changed
+347
-803
No files matched your search
@@ -1,8 +1,15 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pinhook.plugin
|
||||
import time
|
||||
|
||||
@pinhook.plugin.listener('fight')
|
||||
def fight_plugin(msg):
|
||||
if msg.botnick + ": " in msg.text:
|
||||
return pinhook.plugin.message("u want some of this, m8?")
|
||||
|
||||
@pinhook.plugin.listener('action')
|
||||
def action_plugin(msg):
|
||||
if msg.botnick in msg.text and hasattr(msg, 'event') and msg.event is "action":
|
||||
time.sleep(1)
|
||||
msg.action(msg.channel, msg.text.replace(msg.botnick, msg.nick) + " back")
|
||||
Reference in new issue
Block a user