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

Default command username argument and autobop. #18

Open
ghost opened this issue Feb 3, 2013 · 2 comments
Open

Default command username argument and autobop. #18

ghost opened this issue Feb 3, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 3, 2013

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.

@technobly
Copy link
Contributor

TT doesn't allow autobopping anymore... so it's hardcoded out. This bot is good, but there are still a lot of issues with it. I will look at the /slap issue.

@technobly
Copy link
Contributor

It needs this added if(!pText) return; in two spots to the commands.js file

{
    command: 'slap',
    callback: function (pUser, pText) {
        if(!pText) return;
        FindByName(pText, function (sUser) {
            if(sUser.length > 0) {
                sUser = sUser[0];
                Speak(sUser, '/me slaps {username}, on the ass.', SpeakingLevel.Misc);
            }
        });
    },
    requires: Requires.Moderator,
    hint: "Slap a ho",
    pm: true
}, 
{
    command: 'smack',
    callback: function (pUser, pText) {
        if(!pText) return;
         FindByName(pText, function (sUser) {
            if(sUser.length > 0) {
                sUser = sUser[0];
                Speak(sUser, '/me smacks {username}, in the FACE!', SpeakingLevel.Misc);
            }
        });
    },
    requires: Requires.Moderator,
    hint: "Smack a ho",
    pm: true
}, 

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

1 participant