52 Commits

Author SHA1 Message Date
Mallory Hancock
fdb16287ce remove unused variable 2019-09-12 10:13:57 -07:00
Mal Hancock
3b07ed99b2
Hotfix/too big error (#63)
* hotfix for message too long

* fix spacing error

* fix error name

* add breaks
2019-03-02 11:02:14 -08:00
Matan Shenhav
709d05da73 Add bot as argument for Message class & pass self in calls (#60)
Passing the bot object as an argument to the Message class make
the pinhook Bot class more extensible. Now it is easy to inherit and
pass attributes of the inherited class into plugins.

See https://github.com/archangelic/pinhook/issues/59
2019-02-23 16:56:03 -08:00
Mallory Hancock
ac2491c005 remove crashing logging statements 2019-02-22 13:59:30 -08:00
Mallory Hancock
07fe4d1c6e fix critical bug 2019-02-22 13:55:48 -08:00
Mal Hancock
81af6ba8bd
fix issue with listeners not sending any output (#58) 2019-02-22 13:39:16 -08:00
Mallory Hancock
836a696dc5 fix typo 2019-02-22 13:16:56 -08:00
Mallory Hancock
8bcf296f2f explicit logging 2019-02-22 13:15:31 -08:00
Mallory Hancock
d8cdaae7b3 fix dumb mistake 2019-02-22 13:07:41 -08:00
Mallory Hancock
5e46ab940d add some debugging statements 2019-02-22 12:56:21 -08:00
Mal Hancock
3cc712b835 fix typo 2019-02-16 10:51:02 -08:00
Mal Hancock
2118cc26eb
changes to __init__ and add command prefix capability (#53)
* changes to __init__ and add command prefix capability
2019-02-16 10:46:38 -08:00
Russell
bf984bacd0 Create ops only commands (#50)
* Add support for ops commands. Fixes #48

* Update readme. remove prints
2019-02-16 10:40:10 -08:00
Russell
7c7d92948a Fixed issue with bot crashing when processing a None message (#49)
Fixes #46
2019-02-08 11:25:49 -08:00
Mal Hancock
479d009346
add timestamp functionality (#44)
closes #43
2019-01-25 13:13:48 -08:00
Mal Hancock
6c87e6d9f0
fix for channel keys (#40) 2018-12-28 11:20:52 -08:00
Mal Hancock
1523cfaf3a
add ability to gather help text (#38) 2018-11-02 13:53:04 -07:00
Mal Hancock
34590dfa32 make help overridable, add ability for plugins to msg, action or notice at will 2018-10-24 14:48:55 -07:00
Lucidiot
f65248f797 Output type as an Enum (#35)
* Add enum34 requirement

* Use an Enum for output types
2018-10-10 10:25:03 -07:00
Mal Hancock
df7007efd1
insert check to log errors for messages over 512 bytes (#29)
fixes #24
2018-10-06 17:46:04 -07:00
Mallory Hancock
b8aed568f4 add nick as argument 2018-04-10 12:15:08 -07:00
Mallory Hancock
101bd91718 pass nick to plugins 2018-04-10 12:13:54 -07:00
Mallory Hancock
9ea10b18f1 fix another typo 2018-04-10 12:07:13 -07:00
Mallory Hancock
966ac38603 forgot to make functions part of self 2018-04-10 12:02:48 -07:00
Mallory Hancock
2bc2c70d1b fix typo 2018-04-10 12:00:18 -07:00
Mallory Hancock
b91731e4ca refactoring code for testability 2018-04-10 11:58:33 -07:00
Mallory Hancock
3287b20c43 fixes issue with bot not responding to private messages 2018-04-10 10:01:49 -07:00
Mallory Hancock
dfd2cd76af fix formatting 2018-04-10 09:54:49 -07:00
Mallory Hancock
08a98febca fix issue where help command crashes bot 2018-03-15 15:15:10 -07:00
Mallory Hancock
03bad6ff1c fix logging issue 2018-03-15 12:09:55 -07:00
Mallory Hancock
7faea22fe1 fix for doubling plugins in memory 2018-03-15 12:04:58 -07:00
M. Hancock
f6c4078d09
add class to connect to twitch.tv (#23)
* make Message object part of Bot

* add TwitchBot class

* fix issue with logging not starting

* change server name

* no loading plugins until functionality works

* allow full functionality

* add ops

* my sanity is wearing thin

* finalize TwitchBot

* fix formatting
2018-02-05 15:56:38 -08:00
Mallory Hancock
3cf1c6d02a implement server password 2018-02-05 12:33:44 -08:00
M. Hancock
311457148e
catch actions and don't send output to cmds during action (#20)
closes issue #18
2018-01-12 11:17:12 -08:00
Mallory Hancock
0031146f98 fix typo 2018-01-11 10:32:14 -08:00
Mallory Hancock
f0e987ef55 fix issue where empty argument was not passed to plugin 2018-01-10 15:25:20 -08:00
Mallory Hancock
8036610663 fix bug in listener load logging 2018-01-10 14:56:46 -08:00
M. Hancock
e0d3b1b2f5
Add logging (#17)
* add console and file logging

* fix issues with starting logging, and now sends to plugins

* add option to turn off logging

* add more logging messages

* add various logging messages

* add logging messages lost in merge
2018-01-10 14:35:27 -08:00
Mallory Hancock
49feb66d8d simplify plugin loading 2018-01-08 12:51:38 -08:00
Sina Mashek
5b10d64eb8 Add listener plugin support (#11)
* Adding listener plugin support

* Exposing number of nicks in channel to listeners

* Expanded number of nicks to be nick list for all plugins

* Change to check plugin command list

* resolving conflict

* Commands and listeners work properly.
2017-12-06 10:45:34 -08:00
importantchoice
a7a2cf383d Fix issue #14 - remove plugins on reload
This fix for load_plugins will clear the plugin.cmds list to ensure that
removed plugins don't remain in its cmds list.
2017-11-30 12:18:20 +01:00
Sina Mashek
cf91e90451 Split plugin outout on newlines and ensure plugins folder exists 2017-11-27 07:10:40 +02:00
Mallory Hancock
1be0f47983 add reload command to detect plugin changes 2017-10-16 10:34:35 -07:00
Mallory Hancock
3a148ae34f add error exceptions for calling commands and for loading plugins 2017-10-13 15:22:47 -07:00
Mallory Hancock
285e580643 expand kwargs for initializing bot. add ssl and nickserv identify support 2017-10-10 11:56:10 -07:00
Mallory Hancock
70b416b5ae create Message object to send to plugins 2017-10-10 08:55:47 -07:00
Mallory Hancock
689d35aec9 add help command 2017-10-09 13:45:32 -07:00
Mallory Hancock
1042ed6080 add cmd to kwargs given to plugins 2017-09-28 09:35:46 -07:00
Mallory Hancock
604b2f878a add plugin capability 2017-09-27 14:55:00 -07:00
Mallory Hancock
a55e1ac495 remove unnecessary shebang 2017-09-27 12:31:12 -07:00