add examples
This commit is contained in:
parent
604b2f878a
commit
fd9acc1358
4
examples/ph.py
Normal file
4
examples/ph.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import pinhook.bot
|
||||||
|
|
||||||
|
ph = pinhook.bot.Bot(['#arch-dev'], 'ph-bot', 'localhost', ops=['archangelic'])
|
||||||
|
ph.start()
|
6
examples/plugins/test.py
Normal file
6
examples/plugins/test.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import pinhook.plugin
|
||||||
|
|
||||||
|
def test(**kwargs):
|
||||||
|
return pinhook.plugin.message("Test")
|
||||||
|
|
||||||
|
pinhook.plugin.add_plugin('!test', test)
|
Loading…
x
Reference in New Issue
Block a user