Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awesome limit #26

Open
DireHavoK opened this issue Jun 4, 2013 · 12 comments
Open

awesome limit #26

DireHavoK opened this issue Jun 4, 2013 · 12 comments

Comments

@DireHavoK
Copy link

i tryed changeing spam limit,,but no luck when i awesome more than 2 times it warns me in red text."DJ_HavoK sounds like a broken record..."

also is there code to change bots device

and im not a coder so be kind plz

@samuri51
Copy link
Owner

samuri51 commented Jun 4, 2013

dnt worry i dont expect anyone to anything beyond how to read the setup ;). the spam limit in the script is the amount of times someone can be auto kicked off stage within 10 seconds before being booted from the room. i.e people are waiting in the queue and some random dude joins the room and tries to spot steal you but the bot removes him, then he keeps trying over and over again. by default if he gets kicked off stage 3 times within 10 seconds he will be booted from the room.

the only thing the script controls is your bots behavior, it can only do things that a normal turntable account could be able to do, expect automated. so if the bot isnt a moderator for instance it cant remove people from the stage or anything of that nature.

the spam limit you are talking about is the amount of times you can type the exact same thing in the chatbox. that is controlled by turntable an there is nothing i can do about it sry. in order for it to stop saying those messages all you have to do is type something else, anything, even a single character and then you will be able to type the same message 3 times again.

and by bots device do you mean the icon it uses as its laptop? like windows linux android symbols etc? then yes there is

@samuri51
Copy link
Owner

samuri51 commented Jun 4, 2013

i haven't tested ill give it a try and let you know how to do it...

@samuri51
Copy link
Owner

samuri51 commented Jun 4, 2013

i figured it out, its super easy. just paste this whole code block somewhere in your script (not inside anything else).
and where it says 'android', change that to your desired laptop. note that this works as is right now. just change the name, don't remove the quotes around it.

here are your choices

  1. linux
  2. mac
  3. pc
  4. chrome
  5. iphone
  6. android
bot.on('ready', function(data)
{        
    bot.modifyLaptop('android');
});

@samuri51
Copy link
Owner

samuri51 commented Jun 4, 2013

only thing to be aware of tho is that i'm pretty sure you'll lose your laptop stickers (your bot i mean)(i haven't tested this but it makes sense)

@DireHavoK
Copy link
Author

Thank ill give it a try...

If I copy and paste script from another bots script will it screw things
up..reason I ask is that other bots are written different.. With like a
separate commands fill that .js points to. I'd like to add other bot
commands to it . ie there's a bit script I have that if u type /video bot
responds with a url of the current songs actual video...let me know and
thank for the quick response.
On Jun 4, 2013 12:02 AM, "chris larosa" [email protected] wrote:

dnt worry i dont expect anyone to anything beyond how to read the setup
;). the spam limit in the script is the amount of times someone can be auto
kicked off stage within 10 seconds before being booted from the room. i.e
people are waiting in the queue and some random dude joins the room and
tries to spot steal you but the bot removes him, then he keeps trying over
and over again. by default if he gets kicked off stage 3 times within 10
seconds he will be booted from the room.

the only thing the script controls is your bots behavior, it can only do
things that a normal turntable account could be able to do, expect
automated. so if the bot isnt a moderator for instance it cant remove
people from the stage or anything of that nature.

the spam limit you are talking about is the amount of times you can type
the exact same thing in the chatbox. that is controlled by turntable an
there is nothing i can do about it sry. in order for it to stop saying
those messages all you have to do is type something else, anything, even a
single character and then you will be able to type the same message 3 times
again.

and by bots device do you mean the icon it uses as its laptop? like
windows linux android symbols etc? then yes there is


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-18888003
.

@samuri51
Copy link
Owner

samuri51 commented Jun 4, 2013

no you can't do that since the commands usually require variables and whatnot found in other places that wouldn't be in my script. if you can find all the variables and parts to it though i guess yeah you could reassemble it. put you can't take one isolated piece of code and expect it to work as is

@DireHavoK
Copy link
Author

Do you have any other add on script for commands for chllybot?
On Jun 4, 2013 1:19 PM, "chris larosa" [email protected] wrote:

no you can't do that since the commands usually require variables and
whatnot found in other places that wouldn't be in my script. if you can
find all the variables and parts to it though i guess yeah you could
reassemble it. put you can't take one isolated piece of code and expect it
to work as is


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-18924606
.

@samuri51
Copy link
Owner

samuri51 commented Jun 4, 2013

not atm no, i ocassionally add new things but i like to keep everything in one file

@DireHavoK
Copy link
Author

do you know of a auto command for when I enter room to have a custom welcome ie master id welcome

@samuri51
Copy link
Owner

samuri51 commented Jun 7, 2013

you mean different greeting messages for different people?

@ghost
Copy link

ghost commented Jun 7, 2013

yeah, I think that's what he meant

@samuri51
Copy link
Owner

samuri51 commented Jun 7, 2013

you could do something like as follows:

1, define an array at the top of the script that holds the names of people you want a custom greeting for

global.greetingsArray = ['nacheese','bob']; //indexes start at 0,  nacheese is 0, bob is 1 and so on

2, around 4039 change the greeting condition to the following... it adds a condition that makes sure when the bot greets a person that they do not have a custom greeting associated with them.

if (GREET === true && data.user[0].userid != USERID && !data.user[0].name.match('@ttstat')
&& greetingsArray.indexOf(data.user[0].name) == -1)

3, somewhere in the 'registered' event use the following format. you will have to modify it yourself to greet various people but the pattern for doing so is given

if(greetingsArray.indexOf(data.user[0].name) != -1)
{
    if(greetingsArray[0] == data.user[0].name) //if array entry matches the user that just entered the room
    {
        bot.pm('yo nacheese', data.user[0].userid); //send a message to them
    }
    else if(greetingsArray[1] == data.user[0].name)
    {
        bot.pm('yo bob', data.user[0].userid);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants