Giter Club home page Giter Club logo

pybot's People

Contributors

kragniz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kragniz ssherar

pybot's Issues

Sockets complaining of a non-integer port

Traceback (most recent call last):
  File "./run.py", line 7, in <module>
    pybot.run(sys.argv[1:])
  File "/Users/sambuca/pybot/pybot/__init__.py", line 292, in run
    pybot.connect()
  File "/Users/sambuca/pybot/pybot/__init__.py", line 149, in connect
    self.socket.connect((self.server, self.port))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)

Issue highlighted when argparse parses everything as strings, and sockets only accepts integers

can't define a context for commands

Because of the way object-based decorators work, setting a context for a command in the command decorator will cause bad times.

@command(context=CONTEXT_QUERY) should be totally legal happy times syntax but in order to make this happen, command's __init__ method would not be able to take in the function, which would have to be taken at call time. That means that we loose all the shiny logging goodness and commands like commands become insane to implement.

Support admin users

Some of the builtin plugin's commands should only be executed by trusted users. I think there should also be a new decorator admin_command to handle the check for privs.

No error reporting

Commands such as .join will cause badness due to it not including the channel to join (the message argument will be empty). This should be reported to the caller.

test

Issue created by pybot's git plugin by bugsduggan in #lolhax

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.