defendtheweb / nexbot Goto Github PK
View Code? Open in Web Editor NEWNode.js IRC bot
License: Other
Node.js IRC bot
License: Other
!kill Osaka
Kicks user every time they join.
Might be an idea to bring back 3 strike moderation thingy that UtiBot had.
!define pie
NexBot: A baked dish of fruit, or meat and vegetables, typically with a top and base of pastry.
!youtube
get the latest youtube video.When a user next joins a channel or speaks if they are already there then NexBot should post the message.
Auto install the required modules from the NPM do-hicky
For example:
does this work? !notime
Each user should be allowed 3 warning before being kicked or banned. These warnings can be issued by an administrator via the !warn command. This will include a reason for the warning. When a user reaches three warnings they will automatically be kicked from the channel.
Flood protection could also be built into this system, but bypassing warnings and simply kicking anyone flooding a channel.
Instead of the current persistent DB connection it may be favorable to store stats and upload them at a predefined interval. Thus if there is a connection problem the stats can be kept until the update can be completed successfully. This would solve all the current connection problems with one easy solution.
If no last.fm username is set, try IRC nick of requesting user.
18:41 (@ Osaka ) !issues
18:41 NexBot � quits [Client exited] [<[email protected]>]
18:41 NexBot � joins #hackthis [<[email protected]>]
See Library for more information
Ability to get a minified user profile via the command !user username, example result:
username | score: 2938 | posts: 123 | lines: 14 | comments: 1
Send pong when someone send ping !
Would be desirable to be able to load and reload modules via IRC commands. Allowing for changes to be pushed to NexBot without having to exit and restart his base code.
There are currently no database schemes included
Pull and update from git on command by authorised user
Replace module does not like replacing content in actions. General improvements to the way NexBot handles actions would be good e.g. replacing flag
17:09 <+flabby> I don't think he likes actions
17:09 * flabby hello
17:09 <+flabby> s/hello/goodbye
17:09 <+NexBot> I don't think he likes actions
Requests the number of tickets from git hub. Possible to provide a repo name, by default with no arrguments it will get NexBot's issues.
Use HTTP headers to check for change.
The fastest request is no request. The second fastest is to simply check if the resource on the server has changed. For this you can make use of the HTTP caching > headers like Date, ETags and If-Modified-Since.
Taken from 6 reasons your REST API must come with a client
See Line 55 of the imgur module.
Probably add some better support for performance calls here, as it gets 56 results from Imgur then randomly selects one, it will do this each time because imgur give us 56 random images then update it every hour.
!noidea
http://i.imgur.com/McMJXzD.jpg
Because why not?
I propose a new title command that will get the title of the last link posted in the channel
Respond to users requests for level specific help. Each time a user requests help for the same level a more detailed answer is returned.
!hellodog <username>
NexBot: <username>: <hellodog-URL>
Lost DB connection
MySQL Error [1]: Error: Connection lost: The server closed the connection.
MySQL Error [2]: Error: Connection lost: The server closed the connection.
A module to allow any user to run and vote on a poll.
Example:
!poll <Title>
NexBot: Poll started - <Title>
!vote <blah>
!vote <blah2>
!vote <blah>
!poll end
NexBot: <blah> wins. <blah> (2 vote), <blah2> (1 vote)
If a poll is already running
!poll <Title>
NexBot: A poll is already running - <Title>
!poll
NexBot: Current poll: <title>
Poll results should be sent to HackThis!! via a new API call that collates all previous polls and results.
Prevent spam on the channel when there is a long thread exchange happening
If you use the command !groove followed with a space, and have correctly mapped last.fm user, it will return "undefined - undefined : undefined"
Edit: Guessing it does not matter if you have a mapped last.fm user
Discuss
/msg shouts list
A call to !profile or !profile username will make NextBot quit and rejoin the channel.
NexBot should begin talking to itself/users when no activity has been detected.
Separate the different aspects such as last.fm, bit.ly etc into seperate modules. Leaving only the most basic functions within the main file.
Required for #7
The reintroduction of url shortening services. For example:
/msg NexBot bitly www.hackthis.co.uk #hackthis
Need to be careful of trying to send messages to channels that NexBot is not part of or this will cause him to crash.
!fuckthis
NexBot: http://static.fjcdn.com/gifs/FUCK_449486_3018675.gif
!google <search term>
!wiki <search term>
Return the first result.
!lastseen <user>
OpenGraph lookup, returns the title of a given URL. If a URL is not given then it should return the title of the last URL shared on that channel.
When replacing an action, NexBot does not correctly display the action.
Administrators should be given the ability to add shouts (command, gif pairs)
The nick.js and config.js files are just about identical, they could be combined into one generic module/file.
Messaging the bot with the command 'help' will return instructions on how to use the loaded modules.
What can be included to make NexBot useful?
Revert back to the better version of string replace where it did not have " meant: " at the beginning of the new string.
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.