z0mbieparade / b0t Goto Github PK
View Code? Open in Web Editor NEWirc node bot with trakt.tv, last.fm, urban dictionary, and more functionality
License: MIT License
irc node bot with trakt.tv, last.fm, urban dictionary, and more functionality
License: MIT License
looks like twitter went to JS only. There is no <title> tag that includes the tweet in the header.
It would be nice to somehow support tweets. maybe redo what their shit javascript does. I plan to tackle fixing this bug as part of hacktoberfest if you approve of my work.
I had some issues updating my old b0t installation, so I re-checked it out, did a minimal configuration (while saving my old one), and attempted to start b0t. However, I got this:
[2019-06-12 11:55:31.073] [INFO] b0t - Initializing the quantum b0t clutch assembly...
[2019-06-12 11:55:31.078] [INFO] b0t - Engaged the quantum words database
[2019-06-12 11:55:31.081] [INFO] b0t - *** Reversing polarity on plugins array ***
[2019-06-12 11:55:31.084] [WARN] b0t - Missing Goodreads API key!
[2019-06-12 11:55:31.085] [INFO] b0t - * Polarizing the bubble valve Books Plugin...
[2019-06-12 11:55:31.088] [INFO] b0t - * Reconfiguring the plutonium array Default Plugin...
[2019-06-12 11:55:31.170] [WARN] b0t - Missing Wolframalpha API key!
[2019-06-12 11:55:31.170] [INFO] b0t - * Focuing the superluminal reactor GetInfo Plugin...
[2019-06-12 11:55:31.174] [INFO] b0t - * Reigniting the gravimetric compensator Location Plugin...
[2019-06-12 11:55:31.175] [INFO] b0t - * Carbonizing the thera-magnetic compensator Media Plugin...
/home/plstate/b0t/plugins/music/func.js:107
var reg = /.?(.?)</td>.?(.?)</td>.*?</tr>/mgis;
^
SyntaxError: Invalid regular expression flags
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/home/plstate/b0t/plugins/music/cmds.js:1:75)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at /home/plstate/b0t/lib/commands.js:20:18
at Array.forEach ()
at /home/plstate/b0t/lib/commands.js:16:14
at FSReqWrap.oncomplete (fs.js:135:15)
[2017-12-14 00:31:22.126] [INFO] b0t - ------------------------------------------------------------
[2017-12-14 00:31:22.131] [INFO] b0t - Initializing the quantum b0t clutch assembly...
[2017-12-14 00:31:22.136] [INFO] b0t - Engaged the quantum words database
[2017-12-14 00:31:22.140] [INFO] b0t - *** Reversing polarity on plugins array ***
[2017-12-14 00:31:22.319] [WARN] b0t - Missing Merriam-Webster dictionary API key!
[2017-12-14 00:31:22.320] [INFO] b0t - * Stabilizing the chromium plantation GetInfo Plugin...
[2017-12-14 00:31:22.606] [INFO] b0t - * Fluctuating the lepton flange LastFM Plugin...
[2017-12-14 00:31:22.654] [INFO] b0t - * Scrubbing the power state-changer Location Plugin...
[2017-12-14 00:31:23.004] [WARN] b0t - Missing imgur API key!
[2017-12-14 00:31:23.006] [INFO] b0t - Engaged the quantum insults database
[2017-12-14 00:31:23.006] [INFO] b0t - * Uncoupling the automatic chamber Random Plugin...
debug: initialized
[2017-12-14 00:31:23.468] [INFO] b0t - * Scrubbing the rubidium system TraktTV Plugin...
[2017-12-14 00:31:23.475] [INFO] b0t - * Energizing the bubble plantation Untappd Plugin...
[2017-12-14 00:31:23.478] [INFO] b0t - * Inverting the flow feed Default Plugin...
[2017-12-14 00:31:23.483] [ERROR] b0t - db.get_data Can't Load Database
[2016-08-15 12:39:11.059] [DEBUG] logfile - CMD np [ 'thegleek' ]
{ '0': { label: 'last.fm username', cat: 'LastFM', col: 'lastfm' } }
15 Aug 12:39:11 - SEND: PRIVMSG #oontz :Your 10last.fm username is not registered! Please type 10`lastfm <last.fm username> to register it
[2016-08-15 12:39:15.225] [DEBUG] logfile - CMD lastfm [ 'thegleek' ]
[2016-08-15 12:39:15.226] [DEBUG] logfile - thegleek { lastfm: 'thegleek' }
[2016-08-15 12:39:15.228] [DEBUG] logfile - Updated
{ '0': { irc_nick: 'thegleek', label: 'lastfm' } }
15 Aug 12:39:15 - SEND: NOTICE thegleek :Thanks 10thegleek your last.fm username was set!
[2016-08-15 12:39:18.489] [DEBUG] logfile - CMD np [ 'thegleek' ]
[2016-08-15 12:39:18.841] [ERROR] logfile - getRecentTrack error: { error: 6, message: 'Track not found', links: [] }
{ '0': { err: 'Track not found' } }
Track not found
15 Aug 12:39:18 - SEND: NOTICE thegleek :04Error: Track not found
see the "track not found"
In b0t.js on line 66, which is reached if a new config.json file is being created (on first run), the code attempts to instantiate a new instance of the JsonDB class. However, it can't find the class because a require line isn't present.
Adding the following to the require block: 'var JsonDB = require("node-json-db");'
... and then running the following command: 'npm install node-json-db'
... solves the issue.
Not sure how you can test this, but the bot literally can't run in a channel with more than 100 people in it.
b0t spams 'No such nick: NickServ' despite leaving password blank or removing from config.
if(config.nickserv_password) bot.say(config.nickserv_nick, 'identify ' + config.nickserv_password);
Even though I remove nickserv_password from config, it's re-added by default config. Need condition here to not run identify if nickserv_password doesn't exist or it's an empty string (or need to remove it from default config).
!movie return multiple results when it queries the service? could i send you a patch that detects 19\d\d or 20\d\d in the query and filters the results by year?
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.