Giter VIP home page Giter VIP logo

Comments (8)

oldramen avatar oldramen commented on July 29, 2024

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.

xpoondiggy avatar xpoondiggy commented on July 29, 2024

that would be perfect =) thanks in advance!

from hashtag-amy.

oldramen avatar oldramen commented on July 29, 2024

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.

xpoondiggy avatar xpoondiggy commented on July 29, 2024

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.

oldramen avatar oldramen commented on July 29, 2024

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.

xpoondiggy avatar xpoondiggy commented on July 29, 2024

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.

oldramen avatar oldramen commented on July 29, 2024

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.

xpoondiggy avatar xpoondiggy commented on July 29, 2024

and once again! =) you make life better! THANK YOU yayramen!!

from hashtag-amy.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.