itslukej / zirc Goto Github PK
View Code? Open in Web Editor NEWInternet Relay Chat Protocol client library
License: GNU General Public License v3.0
Internet Relay Chat Protocol client library
License: GNU General Public License v3.0
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
The python module flask
does this:
https://github.com/pallets/flask/blob/master/flask/ext/__init__.py
https://github.com/pallets/flask/blob/master/flask/exthook.py
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.
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
server-time
self.connect()
, it should be accessible through self.config
already due to class inheritanceTraceback (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)
this should explain itself
We could use https://github.com/python/asyncio for this.
A good use of asyncio is https://github.com/Rapptz/discord.py 's quick example
The wiki is currently empty, It needs some documentation for users to even understand what they are doing.
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
account-notify
Extensionaway-notify
Extensionextended-join
Extensiontls
Extensionaccount-tag
Extension - Supported with message tags, nothing needs to be done herebatch
Extensioncap-notify
Extensionchghost
Extensionecho-message
Extensioninvite-notify
Extensionsasl
Extensionserver-time
Extension - Supported with message tags, nothing needs to be done hereuserhost-in-names
ExtensionI 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
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! ๐ค
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.