diff --git a/examples/ph.py b/examples/ph.py new file mode 100644 index 0000000..acf7d01 --- /dev/null +++ b/examples/ph.py @@ -0,0 +1,4 @@ +import pinhook.bot + +ph = pinhook.bot.Bot(['#arch-dev'], 'ph-bot', 'localhost', ops=['archangelic']) +ph.start() diff --git a/examples/plugins/test.py b/examples/plugins/test.py new file mode 100644 index 0000000..58c7e86 --- /dev/null +++ b/examples/plugins/test.py @@ -0,0 +1,6 @@ +import pinhook.plugin + +def test(**kwargs): + return pinhook.plugin.message("Test") + +pinhook.plugin.add_plugin('!test', test)