Ken Spencer
a1bbb4fdb9
utils: style points! WOOOO
2016-11-18 23:10:45 -08:00
Ken Spencer
fdd4135632
utils: add error() to use classes.py's irc.error()
2016-11-18 23:10:45 -08:00
James Lu
438838f81d
ServiceBot: handle autojoin additions even if bots haven't spawned yet
2016-09-24 12:33:57 -07:00
James Lu
a040c3c7d2
ServiceBot: modularize join() for explicit channel joining ( #326 )
2016-09-23 23:43:07 -07:00
James Lu
9e7d0a50ca
Revert "ServiceBot: fall back to a space in 'help' when stripped text is empty"
...
This reverts commit 7a3c8ab637
.
2016-08-27 09:49:59 -07:00
James Lu
06cbbbb019
ServiceBot: display the NotAuthorizedError argument raw
2016-08-25 00:58:19 -07:00
James Lu
5908776a86
API CHANGE: Rename NotAuthenticatedError -> NotAuthorizedError
2016-08-25 00:43:44 -07:00
James Lu
7d2b22630d
ServiceBot: display custom error messages for NotAuthenticatedError
2016-08-25 00:41:53 -07:00
James Lu
3126560fb9
ServiceBot: use newline-agnostic str.splitlines() to split up docstrings
2016-08-02 12:38:15 -07:00
James Lu
7a3c8ab637
ServiceBot: fall back to a space in 'help' when stripped text is empty
...
This makes sure things like newlines actually show when displaying docstrings. Closes #306 .
2016-08-02 12:32:06 -07:00
James Lu
87c558537f
unreal: refactor to use utils.PUIDGenerator
...
Closes #238 .
2016-07-28 21:59:56 -07:00
James Lu
0d563eaa57
control/utils: unload the PyLink service bot on shutdown
2016-07-26 16:26:01 -07:00
James Lu
da9ab6ac90
Merge branch 'master' into devel
2016-07-23 20:57:26 -07:00
James Lu
e56c9640dc
ServiceBot: remove request/remove stubs for now
2016-07-23 19:57:05 -07:00
James Lu
c6ed06ba61
utils: new splitHostmask function
2016-07-20 23:55:34 -07:00
James Lu
c52d542ed8
Initial Clientbot stub, with very rudimentary user handling ( #144 )
2016-07-20 23:55:34 -07:00
James Lu
ba53d63d37
ServiceBot: make sure all the defaultdict(set) instances are SEPARATE
...
Bit of a Python oddity here - If you initialize a class like defaultdict in a class constructor, the same instance is used for all instances of the class?
This fixes all service bots joining the same channel, when they really shouldn't be.
2016-07-07 22:56:05 -07:00
James Lu
4f26a29196
utils: unregisterService should be case insensitive
2016-07-07 22:41:39 -07:00
James Lu
bcc84b8618
core: remove references to plugins/protocols_folder ( #259 )
2016-07-02 23:58:21 -07:00
James Lu
d34ab6db8b
ServiceBot: show an "End of help" line after featured command listing
2016-06-30 18:55:37 -07:00
James Lu
d2b5fd7b6e
ServiceBot: implement short form help for featured command lists
...
Suggestion from @cooper.
2016-06-30 18:52:35 -07:00
James Lu
5c90cbe01f
ServiceBot: always show featured commands list in private, to prevent channel floods
2016-06-30 18:37:14 -07:00
James Lu
02405c36b5
core, fantasy: redo handling of noticed and/or private replies
...
New behaviour for command responses in general: FANTASY commands reply in channel as PRIVMSG, while all commands sent in PM reply as private notices.
- The old irc.called_by is now irc.called_in (PLACE last command was called)
- irc.called_by is now used to store the CALLER of the last command
- notice=True/False toggle is dropped from ServiceBot.call_cmd()
- New private=True/False option added to ServiceBot.reply() and irc.reply(), which controls whether replies should be sent privately or not.
2016-06-30 18:22:45 -07:00
James Lu
0922f7cefc
ServiceBot: sort featured commands list
2016-06-30 18:05:12 -07:00
James Lu
e730909a46
utils: pass featured argument to ServiceBot in add_cmd()
2016-06-30 17:57:40 -07:00
James Lu
7210161ece
ServiceBot: use a shared function for showing command help
2016-06-30 17:39:53 -07:00
James Lu
a9f8b05419
ServiceBot: support service descriptions, featured commands
...
Closes #256 . Closes #255 .
2016-06-30 17:30:44 -07:00
James Lu
b90c69eead
ServiceBot: actually, make extra_channels network specific
2016-06-25 14:21:13 -07:00
James Lu
ceed9346c0
ServiceBot: allow configuring extra channels that bots will join
2016-06-25 14:14:19 -07:00
James Lu
cb633cfba5
Default config file location is now pylink.yml
2016-06-21 10:59:03 -07:00
James Lu
481d70eff8
New import paths for properly installed pylinkirc
2016-06-20 18:18:54 -07:00
James Lu
fa3d230ac9
IncrementalUIDGenerator: normalize SID to strings
2016-06-16 21:55:32 -07:00
James Lu
d362063e8a
ServiceBot: ignore invalid commands beginning with \x01 (CTCP)
2016-06-15 11:26:30 -07:00
James Lu
77fa3573a1
ServiceBot: remove defaults for nick and ident
...
This fallback is handled by coreplugin already.
2016-06-11 10:54:07 -07:00
James Lu
2877d7af4c
ServiceBot.call_cmd: support notice and called_by keys
2016-05-15 11:25:47 -07:00
James Lu
5122aa8f9a
utils: add unregisterService
2016-05-14 14:52:12 -07:00
James Lu
8f14e02f10
utils: return the ServiceBot instance in registerService
2016-05-14 14:23:52 -07:00
James Lu
6440922759
ServiceBot: disable request/remove commands by default
...
These are stubs at the moment, but still.
2016-05-14 14:15:46 -07:00
James Lu
32bc5f120b
core: migrate the main client to ServiceBot ( #216 )
...
- irc.spawnMain is dropped. Clients are now spawned in the endburst loop, after protocol negotiation completes. This allows PyLink to spawn clients with hideoper, etc., closing #194 .
- utils.add_cmd and irc.callCommand are now just wrappers around world.services['pylink'].add_cmd and call_cmd respectively.
- coreplugin registers the main client while it is loaded up, before any commands are added.
2016-05-14 13:29:23 -07:00
James Lu
118d76fd5a
core: allow defining service bots with custom nicks/idents
2016-05-14 12:52:32 -07:00
James Lu
5b3059c85d
ServiceBot: fill in 'help' and 'list' commands ( #216 )
2016-05-14 12:22:00 -07:00
James Lu
924172291f
ServiceBot: work out basic command handling
...
This copies callCommand from the IRC object into ServiceBot.call_cmd. The former will be removed once the main PyLink client is migrated to a service bot.
2016-05-14 10:17:40 -07:00
James Lu
0c7faed213
Move NotAuthenticatedError class back into utils
...
This is needed because ServiceBot exists in utils, and utils cannot import classes without a bad import loop happening.
2016-05-14 10:05:18 -07:00
James Lu
7d11f8c7e0
Begin work on service bot abstraction ( #216 )
...
- State-keeping is done by coreplugin
- utils.registerService() introduced
- new PYLINK_NEW_SERVICE hook introduced
2016-05-14 09:55:46 -07:00
James Lu
beae4eea9e
core: rename utils.fullVersion -> irc.version ( #199 )
2016-04-30 17:00:28 -07:00
James Lu
3bb1208e74
core: move toLower to Irc ( #199 )
2016-04-30 16:57:38 -07:00
James Lu
2fe2e9c8c4
core: move isOper, checkAuthenticated to Irc ( #199 )
2016-04-30 16:54:11 -07:00
James Lu
78f8a2fc8d
core: move isManipulatableClient, getHostmask to Irc
2016-04-30 16:44:37 -07:00
James Lu
064cb9b6aa
core: move reverseModes, joinModes into Irc
2016-04-30 16:33:46 -07:00
James Lu
f1351bb3f5
utils: introduce deprecation warnings for applyModes and parseModes
2016-04-24 21:44:34 -07:00