mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 08:32:32 +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
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pinhook.plugin
|
||||
|
||||
@pinhook.plugin.register('!botlist')
|
||||
def rollcall_plugin(msg):
|
||||
text = "I am owned and run by {}".format(",".join(msg.ops))
|
||||
return pinhook.plugin.message(text)
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pinhook.plugin
|
||||
import util.fightCrime
|
||||
|
||||
@pinhook.plugin.register('!crime')
|
||||
def crime_plugin(msg):
|
||||
message = util.fightCrime.getDuo()
|
||||
return pinhook.plugin.message(message)
|
||||
@@ -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")
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pinhook.plugin
|
||||
|
||||
@pinhook.plugin.register('!help2')
|
||||
def help_plugin(msg):
|
||||
# just a placeholder to overload the built-in !help function
|
||||
if msg.nick in msg.ops:
|
||||
return pinhook.plugin.message("!help has been disabled")
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pinhook.plugin
|
||||
from util import randomThings
|
||||
|
||||
@pinhook.plugin.register('!random')
|
||||
def acronym_plugin(msg):
|
||||
return pinhook.plugin.message(randomThings.getRandom(msg.arg))
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pinhook.plugin
|
||||
import random
|
||||
from util import rhymesWith
|
||||
|
||||
poetic_file = "/home/nossidge/poems/words_poetic.txt"
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pinhook.plugin
|
||||
import util.chopra
|
||||
|
||||
@pinhook.plugin.register('!wisdom')
|
||||
def wisdom_plugin(msg):
|
||||
message = util.chopra.getWisdom()
|
||||
return pinhook.plugin.message(message)
|
||||
Reference in new issue
Block a user