GithubHelp home page GithubHelp logo

itslukej / zirc Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 6.0 262 KB

Internet Relay Chat Protocol client library

License: GNU General Public License v3.0

Python 100.00%
internet-relay-chat ipv4 irc irc-protocol pypi

zirc's People

Contributors

bradleyshaw avatar iczero avatar itslukej avatar quantifiedcode-bot avatar wolfy1339 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zirc's Issues

Member, Channel and Server data classes

Example

>>> event.author.account
"eclipse"
>>> event.author.realname
"why does somebody not know how to flush the toilet"
>>> event.channel.topic
"zIRC  - IRC Protocol client library | https://github.com/itslukej/zirc | CHIPOTLE SOUTHWEST SAUCE"
>>> event.server.nicklen
16

Allow multiple connections

We have the Connection Manager, so the next step is actually supporting multiple servers.
Events would need to be rewritten to allow us to know to wich server to respond to.

event.source.host throws error in on_notice during MOTD

Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/wolfy1339/Python-IRC-Bot/handlers.py", line 100, in on_notice
    source = event.source.host
  File "/usr/local/lib/python3.5/dist-packages/zirc/event.py", line 91, in host
    userhost = self.split("!")[1]
IndexError: list index out of range

v2 Feature list

  • Add builtin logging using server-time
  • async
  • write something to store and build messages to the IRC server, alike https://github.com/abalabahaha/eris/blob/master/lib/rest/Endpoints.js
  • presence storage of users, channels, nickserv, chanserv and the server itself (A data class for each)
  • sexy command framework
  • Improved netsplit support (automatic reconnection)
  • Remove need to pass config to self.connect(), it should be accessible through self.config already due to class inheritance
  • Remove older CPython version (3.2, 3.3) support

unicode errors

Traceback (most recent call last):
  File "test.py", line 52, in <module>
    Bot()
  File "test.py", line 37, in __init__
    self.start()
  File "/home/ubuntu/workspace/env/local/lib/python2.7/site-packages/zirc/client.py", line 43, in start
    self.on_all(event)
  File "test.py", line 49, in on_all
    print(event)
  File "/home/ubuntu/workspace/env/local/lib/python2.7/site-packages/zirc/event.py", line 40, in __str__
    return tmpl.format(**vars(self))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb1' in position 304: ordinal not in range(128)

Wiki needs to be built

The wiki is currently empty, It needs some documentation for users to even understand what they are doing.

Freezing on CAP ACK

Just noticed a bug, the bot froze upon receiving CAP REQ, probably a bug somewhere in the code that runs caps
Opening this issue to note the discovery and as a reminder to fix it

Make zirc IRCv3-compliant

IRCv3 Specifications

IRCv3.1

Base Extensions

Optional Extensions

IRCv3.2

Base Extensions

Optional Extensions

zirc.event.Event: doesn't work with account-notify CAP

I was just trying passing this through and stumbled upon this bug

>>> from zirc.event import Event; Event(':nick!user@host ACCOUNT accountname')
type: ACCOUNT, text_type: ACCOUNT, source: nick!user@host, target: accountname, arguments: [], tags: [], raw: :nick!user@host ACCOUNT accountname 

/cc @BradleyShaw

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

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.