Skip to content

some reason i cant get it to run #77

Description

@2men23

(function () {

// Change this to your GitHub username so you don't have to modify so many things.
var fork = "2men23";

// Define our function responsible for extending the bot.
function extend(1) {
    // If the bot hasn't been loaded properly, try again in 1 second(s).
    if (!window.bot) {
      return setTimeout(extend, 1 * 1000);
    }

    // Precaution to make sure it is assigned properly.
    var bot = window.bot;

    // Load custom settings set below
    bot.retrieveSettings(https://github.com/2men23/custom/blob/master/extension.js);

    //Extend the bot here, either by calling another function or here directly.

    // You can add more spam words to the bot.
    var spamWords = ['spam1', 'spam2', 'spam3', 'spam4'];
    for (var i = 0; i < spamWords.length; i++) {
      window.bot.chatUtilities.spam.push(spamWords[i]);
    }

    // Example code for a bot command:
    bot.commands.baconCommand = {
      command: 'bacon',  // The command to be called. With the standard command literal this would be: !bacon
      rank: 'user', // Minimum user permission to use the command
      type: 'exact', // Specify if it can accept variables or not (if so, these have to be handled yourself through the chat.message
      functionality: function (chat, cmd) {
        if (this.type === 'exact' && chat.message.length !== cmd.length) return void (0);
        if (!bot.commands.executable(this.rank, chat)) return void (0);
        else {
          API.sendChat("/me Bacon!!!");
        }
      }
    };

    // Load the chat package again to account for any changes
    bot.loadChat(en.json);

  }

//Change the bots default settings and make sure they are loaded on launch

localStorage.setItem("basicBotsettings", JSON.stringify({
  botName: "animeFan#1",
  language: "english",
  chatLink: "https://rawgit.com/basicBot/source/master/lang/en.json",
  scriptLink: "https://rawgit.com/basicBot/source/master/basicBot.js",
  roomLock: false, // Requires an extension to re-load the script
  startupCap: 10, // 1-200
        startupVolume: 100, // 0-100
        startupEmoji: true, // true or false
        autowoot: true,
        autoskip: false,
        smartSkip: true,
        cmdDeletion: true,
        maximumAfk: 10,
        afkRemoval: true,
        maximumDc: 60,
        bouncerPlus: true,
        blacklistEnabled: true,
        lockdownEnabled: false,
        lockGuard: false,
        maximumLocktime: 10,
        cycleGuard: true,
        maximumCycletime: 10,
        voteSkip: true,
        voteSkipLimit: 10,
        historySkip: true,
        timeGuard: true,
        maximumSongLength: 7,
        autodisable: false,
        commandCooldown: 30,
        usercommandsEnabled: true,
        thorCommand: false,
        thorCooldown: 10,
        skipPosition: 3,
        skipReasons: [
            ['theme', 'This song does not fit the room theme. '],
            ['op', 'This song is on the OP list. '],
            ['history', 'This song is in the history. '],
            ['mix', 'You played a mix, which is against the rules. '],
            ['sound', 'The song you played had bad sound quality or no sound. '],
            ['nsfw', 'The song you contained was NSFW (image or sound). '],
            ['unavailable', 'The song you played was not available for some users. ']
        ],
        afkpositionCheck: 15,
        afkRankCheck: 'ambassador',
        motdEnabled: false,
        motdInterval: 5,
        motd: 'welcome',
        filterChat: true,
        etaRestriction: false,
        welcome: true,
        opLink: string (),
        rulesLink: string ('https://animearmy-plug-dj.weebly.com'),
        themeLink: string ('https://animearmy-plug-dj.weebly.com'),
        fbLink: string ('https://www.facebook.com/animearmy.plug.dj'),
        discordLink: string ('https://discord.gg/JYNrCQC'),
        youtubeLink: null,
        website: string ('https://animearmy-plug-dj.weebly.com'),
        intervalMessages: [5],
        messageInterval: 5,
        songstats: true,
        commandLiteral: '!',
        blacklists: {
            NSFW: 'https://rawgit.com/basicBot/custom/master/blacklists/NSFWlist.json',
            OP: 'https://rawgit.com/basicBot/custom/master/blacklists/OPlist.json',
            BANNED: 'https://rawgit.com/basicBot/custom/master/blacklists/BANNEDlist.json'
        }
    },));

// Start the bot and extend it when it has loaded.
$.getScript("https://github.com/2men23/custom/blob/master/extension.js", extend);

}).call(this);

Activity

  1. Celahir commented on Sep 19, 2017

    @Celahir

    So.. Something is not working properly? Or just bot won't start? What are exact steps which are you doing while trying to run the scripts?

  2. 2men23 commented on Sep 19, 2017

    @2men23
    Author

    well it won't start at all

  3. Celahir commented on Sep 20, 2017

    @Celahir

    Tested, working for me. I am affraid that i simply can not help you without any info. "it won't start" does not tell me, what browser are you using, which additional scripts are you using, or your PC specs, so i know if your machine is capable to run the script or not.
    Anyway - there is no bug in code. Works fine.

  4. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    i well try aging

  5. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    still wont work for me can you tell me what you did to get it to work

  6. Celahir commented on Sep 20, 2017

    @Celahir

    What did i do? First of all - i read the manual.

  7. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    witch i did

  8. Celahir commented on Sep 20, 2017

    @Celahir

    So... Are you running script from command line, bookmarks, or from another tab? Which browser are you using? How many scripts are you running on one account? What are specs of your PC? I am still missing these basics information...
    Did it worked before or are you trying to run first time?

  9. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    bookmark chorme i am running no other scripts and I tried with the normal it worked but with the one i made/ copyed it dose not run bty its a 1000$ pc with intell cpu and all that less a year old too

  10. samhmills commented on Sep 20, 2017

    @samhmills
    Member

    Hi there,

    Can you share a stacktrace? You can find this by opening developer tools (F12) in chrome (Inspect Element -> Console)

  11. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    frame.96b8efac.js:33 GET https://nexus-websocket-a.intercom.io/client-test net::ERR_CONNECTION_CLOSED
    (anonymous) @ frame.96b8efac.js:33
    e._subscribe @ frame.96b8efac.js:31
    e.reconnect @ frame.96b8efac.js:31
    (anonymous) @ frame.96b8efac.js:31
    r @ frame.96b8efac.js:33
    extension.js?
    =1505949695683:7 Uncaught SyntaxError: Unexpected number
    that is what i get

  12. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    @Hunchmun thxs I totally forgot I could do that I am finding the errors in it

  13. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    Uncaught SyntaxError: rawgit.com/2men23/custom/master/extension.js?_=1505950666953:118 Unexpected token ) now :(

  14. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    ok found it

  15. 2men23 commented on Sep 20, 2017

    @2men23
    Author

    now i have this extension.js?=1505951224697:48 Uncaught ReferenceError: string is not defined
    at extension.js?
    =1505951224697:48
    at extension.js?_=1505951224697:120

  16. 2men23 commented on Sep 21, 2017

    @2men23
    Author

    i cant get :120 to work

  17. 2men23 commented on Sep 21, 2017

    @2men23
    Author

    capture

  18. 2men23 commented on Sep 21, 2017

    @2men23
    Author

    i dont get this pc

  19. 2men23 commented on Oct 4, 2017

    @2men23
    Author

    could someone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions