Giter Club home page Giter Club logo

diderobot's People

Contributors

cybertinus avatar didero avatar starlitghost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

diderobot's Issues

Handle Unicode properly once and for all

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.

Hide admin-only modules for non-admins

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.