Commit Graph

20 Commits

Author SHA1 Message Date
Vgr E.Barry
df26d8d25e Huge overhaul to the decorators + small changes.
- Merge channel and PM commands in a single decorator.
- Add many parameters for the decorators, reducing commands cluster.
- Added back the admin_only check for some commands; special-cased
'<console>'.
- Moved the checking for which roles are seen wolf in the settings; same
for seen as default.
- Added a variable to pick if one is seen as the default role or as a
villager where applicable (default: True).
- Fixed seer/oracle seeing through amnesiac.
- Some fixes to the totem chances that I forgot to add in the previous
commit.
- Removed some useless module imports.
- Moved some functions to settings.
- Changed all single-quotes to double-quotes in commands for
consistency.
- Renamed 'cmd' variable in both force and rforce commands to avoid
confusion.
- Probably a bunch of other things. Don't consider this commit
description to be 100% complete.
2015-01-02 15:57:44 -05:00
jacob1
18199b166c fix multiple letter command prefixes 2014-12-14 17:42:36 -05:00
Vgr E.Barry
87f74d3265 Adds ability for the bot to be in multiple channels. 2014-12-06 17:39:21 -05:00
Vgr E.Barry
191a910098 Fix issue where bot would spam services
This very simple fix probably seems redundant or even entirely
pointless, but it actually solves a big design flaw. It does not show
much for freenode, but for other networks (e.g. Esper), where I tweaked
my bot to use ns_ghost instead, it keeps trying to kill off an
(unregistered) nick, without having a password. This effectively causes
spam to the services, and results in an automatic ban.
2014-08-05 02:40:52 -04:00
nyuszika7h
0df8098ade Revert "autopep8"
This reverts commit 4189d5c874.
2014-07-19 19:09:24 +02:00
nyuszika7h
4189d5c874 autopep8 2014-07-19 19:05:49 +02:00
Jimmy Cao
479e0656bc allow the enabling of certain debug mode commands in normal mode via config 2012-07-14 21:34:11 -05:00
Jimmy Cao
f61e498185 make !frehash more powerful 2012-06-30 11:23:58 -05:00
Jimmy Cao
fc80be7692 remove print statement 2012-06-29 15:36:53 -05:00
Jimmy Cao
e02402d77e sasl authentication, improved bot regain/release behavior, botconfig.py updated! 2012-06-29 13:59:59 -05:00
Jimmy Cao
4a959597a7 prevent certain debug mode crashes 2012-06-29 01:21:42 -05:00
Jimmy Cao
033aa41917 allow /notice commands as an option in the botconfig (not turned on by default) 2012-06-25 17:53:24 -05:00
Jimmy Cao
5106785720 fix regression where wolf relay stopped working, add !simple database code 2012-06-24 21:29:17 -05:00
Jimmy Cao
42cbe54656 allow the bot to ignore all commands sent to @#channel or +#channel (botconfig.py updated!) 2012-06-24 01:46:50 -05:00
Jimmy Cao
3ed79ae9b5 small tweak to module system 2012-06-24 01:01:15 -05:00
Jimmy Cao
5aef3b4c5b fix a crashing bug when doing !help ping 2012-04-02 16:14:13 -05:00
Jimmy Cao
52e4e8c578 various tweaks 2011-12-29 17:41:25 -06:00
Jimmy Cao
16fe18f302 fixed werecrow bugs 2011-12-28 23:34:59 -06:00
Jimmy Cao
b2e5702187 fix the wording in werecrow messages 2011-12-28 19:01:12 -06:00
Jimmy Cao
945190a6e1 major restructuring 2011-12-28 17:44:11 -06:00