aripalo / node-irc-bot Goto Github PK
View Code? Open in Web Editor NEWIRC bot made with NodeJS. Just for fun. NOT MAINTAINED ANYMORE.
IRC bot made with NodeJS. Just for fun. NOT MAINTAINED ANYMORE.
I have this joined on a medium size IRC,
Sadly once in a while people flood this IRC with unwanted URLs which the bot which goes off and fetches the title too (You can see where i'm getting to here)
Sadly in the case of the law unless I can prove otherwise it would be assumed that I requested these potentially illegial URLs trolls keep on pasting in the chat, It would be ideal to have a log file which outputs in the format of username & domain name requested (with maybe an option in the config to turn it off for privacy?)
Thank you very much for your help
If I paste in a file URL: (e.g http://i.imgur.com/yiNa01J.jpg ) in the chat i get
/home/ircbot/node-irc-bot/node_modules/irc/lib/irc.js:748 throw err; ^ SyntaxError: Invalid regular expression: /(https?:\/\/[^\s]+/: Unterminated group at new RegExp (<anonymous>) at urlify (/home/ircbot/node-irc-bot/observers/url.js:19:5) at module.exports (/home/ircbot/node-irc-bot/observers/url.js:49:15) at /home/ircbot/node-irc-bot/modules/observer-handler.js:17:51 at Array.forEach (native) at module.exports (/home/ircbot/node-irc-bot/modules/observer-handler.js:16:36) at Client.<anonymous> (/home/ircbot/node-irc-bot/index.js:47:3) at Client.EventEmitter.emit (events.js:106:17) at Client.<anonymous> (/home/ircbot/node-irc-bot/node_modules/irc/lib/irc.js:517:22) at Client.EventEmitter.emit (events.js:95:17)
I set up myself as the bot admin, using 'nick!username@vhost' have also tried using a wild card (*) and still unable to have it recognize me as its admin
Hi there
Whenever someone triggers !google and adds 4 spaces... the bot will just crash and quits without any message
[05:42:12 PM] @g
[05:42:13 PM] * sparkz ([email protected]) has quit IRC (Client exited)
Is there a way to fix this?
regards
Demo
https://twitter.com/J_Weech/status/598180597966741504
If you paste this the channel which the bot is on it starts to manually type it out
<BOT> James Weech su Twitter: "Testing
<BOT> line
<BOT> breaks
* ANTIFLOOD.SOMETHING.EXAMPLE.COM has kicked BOT from #BotTestingLab (Channel flood triggered (limit is 4 lines in 2 secs))
* BOT () has joined
we have the antiflood in place at the moment to stop the bot going ape but it would be nice if this could be fixed
Thank you
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.