jakobovrum / luairc Goto Github PK
View Code? Open in Web Editor NEWIRC library for Lua
License: Other
IRC library for Lua
License: Other
I tested this and it seems to work fairly well.
Would it be possible to create a release tag? v0.1 or similar.
Thanks!
In the code seen at https://github.com/ophal/botphal/tree/devel, using commit for LuaIRC bc79606 (https://github.com/JakobOvrum/LuaIRC/tree/bc79606de0348d1f6b4aef3f1c9ddf2fffbc8dd5), the IRC library seems to not even try to connect (or a <.1s timeout time is used for some reason), but I have a timeout right after running the script.
Hello,
Could you please help and tell how to change the topic on a channel using the luairc lib you have written?
Thanks!
Unless I missed something, mode options(such as a hostmask), for those modes that use them(o, and b for example) are not passed to the OnModeChange hook. Also, it seems that if a user's access changes(voiced or oped) the change is not recorded in the user list.
Action being /me
I should get around to configuring continuous integration for the documentation, to always keep it in-sync.
Hello!
First thanks for this code, it works really nicely.
The problem I have is when I use irc:whois() it takes up to 2 seconds when the user is present and up to 4 seconds when there is no such user.
Here my test case, this function is in onchat hook:
if (channel == bot.nick and command == "whois") then
local userinfo = bot:whois(message:sub(7))['userinfo']
if (userinfo) then
local host = userinfo[4]
if (host) then
sircbot:sendChat(user.nick, host)
end
else
sircbot:sendChat(user.nick, "user not found")
end
end
The mentioned times are reponse times, between giving the command to the bot and the reply of the bot.
Thanks in advance!
Tamás
I was wondering how I would best run multiple client connections from one lua program.
Thanks!
Pardon my ignorance and scripting noobiness, but I'm having an issue making a small bot work properly as I need to use information in the user table when a user quits or parts. Currently this table is removed before calling the function and thus you can't use the table.
I'm working on a (private) branch with cqueues compatability. I'm creating this issue to track it. Should have something in a day or so.
At the moment hooks are iterated over with pairs()
, which is unordered.
This means that hooks are not fired in a consistent order; and therefore that returning true
to stop further processing isn't useful.
Without it I can not send a message like "mode/#channel [modes] by nick".
Useful for logging.
lua: /usr/local/share/lua/5.2/irc/init.lua:137: Closing Link: xxxx.xxxx.com (Connection timed out)
Am I missing something?
I'm using Lua 5.2
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.