Source

pmxbot / pmxbot / core.py

Author Commit Message Labels Comments Date
Jason R. Coombs avatarJason R. Coombs
Log config when starting up.
Jason R. Coombs avatarJason R. Coombs
Update to use irc 5.0
Jason R. Coombs avatarJason R. Coombs
Use new explicit exceptions to trap exceptions. Also trap unknown exceptions.
Tags
1103.7
Jason R. Coombs avatarJason R. Coombs
Use %r for better reporting
Jason R. Coombs avatarJason R. Coombs
Also trap errors about carriage returns
Tags
1103.6.7
Jason R. Coombs avatarJason R. Coombs
Remove truncation logic - it doesn't work because the irc lib has to add 'PRIVMSG #channel' and other operation parameters. So instead, just trap the error.
Tags
1103.6.6
Jason R. Coombs avatarJason R. Coombs
Extracted method for truncation because it now accounts for encoding in the size.
Tags
1103.6.4
Jason R. Coombs avatarJason R. Coombs
'log' was already in locals(). Blarg.
Tags
1103.6.3
Jason R. Coombs avatarJason R. Coombs
It's log.warn. ugh.
Tags
1103.6.2
Jason R. Coombs avatarJason R. Coombs
Log the truncated message
Tags
1103.6.1
Jason R. Coombs avatarJason R. Coombs
The latest irc module honors the RFC and doesn't allow messages longer than 512 characters. For now, prevent errors by truncating messages.
Jason R. Coombs avatarJason R. Coombs
Allow more fine-grained control of chaining 'contains' commands - just pass 'allow_chain=True' in @contains decorator
Jason R. Coombs avatarJason R. Coombs
Allow commands to remember their aliases
Jason R. Coombs avatarJason R. Coombs
Now construct handlers using keyword arguments. No need for unused arguments for CommandHandler and AliasHandler
Jason R. Coombs avatarJason R. Coombs
Use distinct classes instead of instance attributes to distinguish between different classes of handler
Jason R. Coombs avatarJason R. Coombs
Handlers are no longer tuples
Jason R. Coombs avatarJason R. Coombs
Use attributes of handler rather than tuple
Jason R. Coombs avatarJason R. Coombs
Restore generate_results to focus on the function output. Now exceptions don't incidentally trap other generated output.
Chris Jowett avatarChris Jowett
Allow for more than one @contains command to trigger, disabled by default
Jason R. Coombs avatarJason R. Coombs
Corrected changelog. Fixed config parameter
Tags
1103.5.1
Jason R. Coombs avatarJason R. Coombs
Add support for irc 3.3
Jason R. Coombs avatarJason R. Coombs
Removed '_nolog' flag in favor of just checking the logged channels config
Jason R. Coombs avatarJason R. Coombs
No longer decode messages - they should come from the IRC library as unicode.
Tags
1103.4.1
Jason R. Coombs avatarJason R. Coombs
Fix for failing send of non-ascii messages
Tags
1103.1.8
Jason R. Coombs avatarJason R. Coombs
Allow -m launching via 'pmxbot' and 'pmxbot.web'. Launching via 'pmxbot.core' caused problems because globals in pmxbot.core would be duplicated. Launching via -m runs the code in the module as a script and not as that module.
Jason R. Coombs avatarJason R. Coombs
Ensure the bot doesn't start up without any handlers (seems to happen with python -m pmxbot.core)
Tags
1103.1.6
Jason R. Coombs avatarJason R. Coombs
Now default config specified in pmxbot.__init__ and config parameter is optional
Jason R. Coombs avatarJason R. Coombs
Add module execution points
Jason R. Coombs avatarJason R. Coombs
Cleaned up lint and long lines in core
Jason R. Coombs avatarJason R. Coombs
Moved storage finalization into storage module
  1. Prev
  2. 1
  3. 2
  4. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.