Comments (8)
I'm mobile at the moment, so I can't look at the code, but yes. On bop, if
puser == mcurrentdj return. I can add mute details when I get to a computer
if you need them
On Jul 26, 2012 12:11 PM, "xpoondiggy" <
[email protected]>
wrote:
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.
Reply to this email directly or view it on GitHub:
#13
from hashtag-amy.
that would be perfect =) thanks in advance!
from hashtag-amy.
So yeah, adding this line:
if (pUser == mCurrentDJ) return;
at the very beginning of the /dance command should work.
Or, a better way would be:
if (pUser.userid == mCurrentDJ.userid) return;
from hashtag-amy.
I'm a little confused, how do I edit it so that it sends them a message through chat? like "please, stop being cheap" & vote down
from hashtag-amy.
if (pUser.userid == mCurrentDJ.userid) {
mBot.vote("down");
return Speak(pUser, "Please stop being cheap.", SpeakingLevel.Misc);
}
That should work. It's untested code so I might have some vars wrong.
from hashtag-amy.
command: ['dance', 'bop'],
if (pUser.userid == mCurrentDJ.userid) {
mBot.vote("down");
return Speak(pUser, "Please stop being cheap.", SpeakingLevel.Misc);
}
message: 'I LOVE this song! Come on @{username} Dance with me! ',
callback: function (pUser, pText) {
mBot.vote("up");
Speak(pUser, this.message, SpeakingLevel.Misc);
},
requires: mModBop ? Requires.Moderator : Requires.User,
hint: "Makes the bot dance." + (mModBop ? " Can not be done by regular users." : "")
},
this which I'm sure I got wrong, is not working for me, the bot wont open after I added that
from hashtag-amy.
Ah, add the code right before the mBot.vote("up")
On Thu, Jul 26, 2012 at 8:04 PM, xpoondiggy <
[email protected]
wrote:
command: ['dance', 'bop'],
if (pUser.userid == mCurrentDJ.userid) {
mBot.vote("down");
return Speak(pUser, "Please stop being cheap.", SpeakingLevel.Misc);
}
message: 'I LOVE this song! Come on @{username} Dance with me! ',
callback: function (pUser, pText) {
mBot.vote("up");
Speak(pUser, this.message, SpeakingLevel.Misc);
},
requires: mModBop ? Requires.Moderator : Requires.User,
hint: "Makes the bot dance." + (mModBop ? " Can not be done by
regular users." : "")
},this which I'm sure I got wrong, is not working for me, the bot wont open
after I added that
Reply to this email directly or view it on GitHub:
#13 (comment)
Dalton Gore
253.234.5597
me @ yayramen.com
*
*
from hashtag-amy.
and once again! =) you make life better! THANK YOU yayramen!!
from hashtag-amy.
Related Issues (15)
- Error starting bot HOT 5
- Lotto
- bson? HOT 4
- twitter HOT 6
- feature request
- /song shuffle HOT 6
- Default command username argument and autobop. HOT 2
- Bot won't start HOT 2
- mName is not defined HOT 8
- AFK not being reset by awesome HOT 3
- off genre votes HOT 2
- Setting up Mongodb? HOT 6
- mQueueGrabSpotTimeout is not defined HOT 14
- Not real sure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashtag-amy.