didero / diderobot Goto Github PK
View Code? Open in Web Editor NEWA modular Python 3 IRC bot built with Gevent
License: MIT License
A modular Python 3 IRC bot built with Gevent
License: MIT License
Instead of having each module handle incoming character encodings properly, make sure that before sending anything to the modules, it's either proper Unicode or proper (utf-8?) strings. Probably easiest through the IrcMessage class, since all incoming messages to modules are put in an instance of that.
Then the problem becomes whether to remove unparsable characters, or to drop the entire message.
Obviously modules using APIs will still have to check that on an individual basis.
Unify outgoing messages too, which should be strings and not Unicode, otherwise Twisted gets angry.
Instead of a separate 'hideInCommandList' variable, check if the user using !help or something is an admin, and if the current module is admin-only.
If the user isn't and the module is, don't list it.
If the user IS an admin, either show all the modules, or add a separate !helpadmin trigger to show the admin-only commands too. Or maybe only show all the admin commands when !help is called in private message, though the distinction may be a bit non-obvious.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.