add examples

pull/1/head
Mallory Hancock 2017-09-27 14:59:46 -07:00
parent 604b2f878a
commit fd9acc1358
2 changed files with 10 additions and 0 deletions

4
examples/ph.py 100644
View File

@ -0,0 +1,4 @@
import pinhook.bot
ph = pinhook.bot.Bot(['#arch-dev'], 'ph-bot', 'localhost', ops=['archangelic'])
ph.start()

View File

@ -0,0 +1,6 @@
import pinhook.plugin
def test(**kwargs):
return pinhook.plugin.message("Test")
pinhook.plugin.add_plugin('!test', test)