oldramen / hashtag-amy Goto Github PK
View Code? Open in Web Editor NEWA bot for Turntable
Home Page: hashtag-amy
A bot for Turntable
Home Page: hashtag-amy
Doing some afk testing, and pressing awesome did not seem to reset afk, only chat. global.mAfkBop = true; is on.
When I have Lotto enabled the bot will announce type /spin. Once that is all done and the person has won, they hop up and claim their prize. Then like 15 seconds later, when all spots are full, he announces again to spin and to claim their prize. Well no prize available because all spots are taken :) Know how to fix that? Thanks
Hey guys, I'm new to node.js and mongodb, so I can't point what is causing my error. Any help is much appreciated.
Sir Lance >>> Loading.
/home/ubuntu/turntable/node_modules/mongoskin/lib/mongoskin/utils.js:75
exports.extend = function (destination, source) {
^
TypeError: Cannot assign to read only property 'extend' of #
at Object. (/home/ubuntu/turntable/node_modules/mongoskin/lib/mongoskin/utils.js:75:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ubuntu/turntable/node_modules/mongoskin/lib/mongoskin/db.js:17:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
A couple of issues.
So first off when I do commands like /smack or /slap, without specifying a user, it always smacks or slaps some user called sirmixalot. Not sure why or if it is supposed to work like that. I think that user was one of the first people to join my room, but I don't remember doing anything to him.
Second, the bot doesn't autobop for mods. In the config file there seems to be two instances of global.autobopformods. Not sure if it's supposed to be like that but I set them both to true, but doesn't work.
is there a way to stop the current dj from bop/dance, themselves? if(pUser.isDJ) maybe? with a warning message & a vote down?
the point farming is a lil annoying, most users only use it for that reason & hardly ever use it to bop for someone else.
Hey -
I received this error when trying to load the bot. Any feedback would be appreciated :) thanks!
C:\Users\Lys\Desktop\Amy>node config.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
ReferenceError: mQueueGrabSpotTimeout is not defined
at Object. (C:\Users\Lys\Desktop\Amy\enums.js:42:110)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (C:\Users\Lys\Desktop\Amy\config.js:8:1)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
ok, maybe Im filling out the devtwitter wrong.
secret, key & token, checked, I try the /tweet command in the room, I get the response "tweet sent".
but it wasnt, the account remains with 0 tweets. as far as the devtwitter filling-out goes,
my 'request setting' = GET
Request URI: * = https://api.twitter.com/1/
Request query: = empty
Callback URL: = empty
anything need to change there?
is there a way I can have the bot pull someone offstage by how many lames they get automatically...say like if they get 5 lames on a play, the bot pulls them off the deck with a short explanation
kinda reverse-bonus I guess
getting this error on startup: ReferenceError: mName is not defined
Any suggestions?
when I try to connect the bot I get this error
C:\Users\admin\Desktop\amy>node config.js
MissMelody >>> Loading.
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'bson'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (C:\Users\admin\Desktop\amy\main.js:16:20)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
I believe that I may have setup mongo correctly because I'm able to see http://localhost:28017/ then I run it? also the npm installs didn't give me any errors.
i was stuck on the db for awhile and finally got it connected, now I get this error:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Argument passed in must be a single String of 12 bytes or a string of 24
hex characters
at Function.createFromHexString (C:\Program Files\nodejs\bot3\amy\node_modul
es\bson\lib\bson\objectid.js:212:11)
at C:\Program Files\nodejs\bot3\amy\functions.js:875:51
at Object.Save (C:\Program Files\nodejs\bot3\amy\functions.js:1030:17)
at Object.Update (C:\Program Files\nodejs\bot3\amy\functions.js:991:18)
at [object Object]. (C:\Program Files\nodejs\bot3\amy\functions.j
s:138:11)
at [object Object].emit (events.js:67:17)
at [object Object].onMessage (C:\Program Files\nodejs\bot3\amy\node_modules
ttapi\bot.js:264:15)
at [object Object].onmessage (C:\Program Files\nodejs\bot3\amy\node_modules
ttapi\bot.js:73:49)
at Array.0 (C:\Program Files\nodejs\bot3\amy\node_modules\ttapi\websocket.js
:308:30)
at EventEmitter._tickCallback (node.js:192:40)
Doesn't seem to work anymore.
How do I set up my mongodb?
Yayramen, are these variables working?
global.mDownVotesForOffGenre
global.mOffGenre
I have to wonder if there is something that isn't initializing the database. I get the following error. This is on a fresh MongoDB install. I get similar problems with a localhost install AND external.
~/node/hashtag-amy$ node maw.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
ReferenceError: mInfoOnRoom is not defined
at /node/hashtag-amy/functions.js:364:30/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/db.js:1193:25)
at /node_modules/mongoskin/node_modules/mongodb/lib/mongodb/cursor.js:129:9/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/cursor.js:440:12)
at /node_modules/mongoskin/node_modules/mongodb/lib/mongodb/cursor.js:171:11/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/cursor.js:452:17)
at /node_modules/mongoskin/node_modules/mongodb/lib/mongodb/cursor.js:452:35/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/cursor.js:660:5)
at Cursor.close (
at Cursor.nextObject (
at [object Object]. (
at [object Object].g (events.js:156:14)
at [object Object].emit (events.js:88:20)
at Db._callHandler (
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.