[sockbot] I wanted a robot, So I made one


  • Yes it shows up as unknown on Linux

  • Plugin & Theme Dev

    @UncleSam huh. and did the bot actually receive notifications from the forum in the time period it was online?

    if so.... i'm very confused.... but never fear i will figure this out. there's one more piece of debugging available to me!

    could you enable Ultra Debug Mode<sup>TM</sup> and send me a link via chat to a pastebin or gist of the file it generates?

    There is a possibility of sensitive information being revealed through Ultra Debug Mode<sup>TM</sup> so please make sure the pastebin or gist is private and send the link to me over chat, rather than posting on the forum.

    to enable Ultra Debug Mode<sup>TM</sup> run the bot with the following command:

    $> DEBUG=* sockbot /path/to/config.yml 2>&1 | tee logfile.txt
    

    then run the bot through it's paces by mentioning it and sending the help command via chat to the bot before sending me logfile.txt

    That should provide me with all the necessary information to determine what's gone wrong.

    Thank you for your patience and understanding in this matter.

  • Plugin & Theme Dev

    Release v3.1.1 has been released to github and npm

    Fixes several bugs in 3.1.10 including (but not limited to)

    • Mentions were not being processed correctly, breaking the summoner plugin

    Notable updates in this merge:

    • update travis and tests for release of nodejs 6.0
    • resolve SockDrawer/SockBot#305
    • add formatters to format URLs for a forum.
    • add quoteText format function. resolves SockDrawer/SockBot#309, enables SockDrawer/sockMafia#66
    • add misc format functions resolves SockDrawer/SockBot#311
    • change post link format, resolves SockDrawer/SockBot#308
    • release version 3.1.1 fixing mention notifications
  • Plugin & Theme Dev

    @UncleSam please install the new version and test. it should resolve your issue with the summoner plugin.

  • Plugin & Theme Dev

    @accalia tried to run and getting this

    sockbot example.config.yml

    const path = require('path');
    ^^^^^
    SyntaxError: Use of const in strict mode.
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

  • Plugin & Theme Dev

    @exodo said in [sockbot] I wanted a robot, So I made one:

    SyntaxError: Use of const in strict mode.

    hmm...

    let me guess..... node version 0.12?

    sockbot unfortunately uses a lot of features of ES6 and thus requires version 4.0 to run.

    it may be possible to run in version 0.12 using the --harmony command line flag but that configuration is, unfortunately not supported. 😞

  • Plugin & Theme Dev

    @accalia said in [sockbot] I wanted a robot, So I made one:

    @exodo said in [sockbot] I wanted a robot, So I made one:

    SyntaxError: Use of const in strict mode.

    hmm...

    let me guess..... node version 0.12?

    sockbot unfortunately uses a lot of features of ES6 and thus requires version 4.0 to run.

    it may be possible to run in version 0.12 using the --harmony command line flag but that configuration is, unfortunately not supported. 😞

    i see, my test server doesnt support that new realeases, thank anyways

  • Plugin & Theme Dev

    @exodo said in [sockbot] I wanted a robot, So I made one:

    i see, my test server doesnt support that new realeases, thank anyways

    unless there's a specific reason why the newer versions of nodejs are not supported i have found nvm to work just fine for managing multiple versions of nodsjs.

    in fact all development for sockbot is done using nvm installed version of node so as to allow me to quickly switch between versions to test functionality against multiple versions of nodejs.

    I'd be happy to help you set up a user account on your test server with nvm so that you can use sockbot on that server without interfering with the already installed applications..... if that's a thing you'd like to do?

    I have also confirmed that cloud9 ide fully supports sockbot in its free tier (and comes with nvm preconfigured). Workspaces for the free tier are quickly frozen when idle, so good for testing, not so good for long term use.

  • Plugin & Theme Dev

    @accalia said in [sockbot] I wanted a robot, So I made one:

    @exodo said in [sockbot] I wanted a robot, So I made one:

    i see, my test server doesnt support that new realeases, thank anyways

    unless there's a specific reason why the newer versions of nodejs are not supported i have found nvm to work just fine for managing multiple versions of nodsjs.

    in fact all development for sockbot is done using nvm installed version of node so as to allow me to quickly switch between versions to test functionality against multiple versions of nodejs.

    I'd be happy to help you set up a user account on your test server with nvm so that you can use sockbot on that server without interfering with the already installed applications..... if that's a thing you'd like to do?

    I have also confirmed that cloud9 ide fully supports sockbot in its free tier (and comes with nvm preconfigured). Workspaces for the free tier are quickly frozen when idle, so good for testing, not so good for long term use.

    thanks for the support, i wil check all that
    i work on synology so actually i think its not posible to update it

  • Plugin & Theme Dev

    @exodo said in [sockbot] I wanted a robot, So I made one:

    i work on synology so actually i think its not posible to update it

    hmm... interesting. don't think i've worked with them before. I've got a QNAP NAS myself and use an Intel NUC, or a Raspberry Pi, as my test box....

    still NVM should work for you, it installs to your home directory so it doesn't interfere with other users or the system.

    @exodo said in [sockbot] I wanted a robot, So I made one:

    thanks for the support

    no worries. it's what i do. let me know if i can do anything more to help.


  • When i install bot ant try to run it i get error
    "nodebb A-derp! Fatal Startup Error: Unexpected token < " HELP?

  • Plugin & Theme Dev

    @Domas-Vileikis interesting error...

    could you post the configuration file you are using for the bot (with password redacted for security) so i can take a look at it? most errors like this are simple typos in configuration and should be easy to solve.

  • GNU/Linux Admin

    Eh, usually unexpected token < is encountered when you're trying to parse JSON and you received HTML instead...

  • Plugin & Theme Dev

    @julian true, but as this is a startup error it's highly likely to be caused by a misconfiguration in the config file (usually the wrong URL for the forum)

  • Anime Lovers

    I want to know if people use it for malicious perpose? For instance, some could run a script that frequently post ADs to our forum, thus cause our forum unable to run normally? Is it possible to use it without administrative permission?😦

  • Community Rep

    @jiangcaiyang They can do that without a bot, so any restrictions on the bot would be superfluous.

  • Anime Lovers

    @yariplus So what is typical use of a bot?

  • Community Rep

    Automation. It does what a human could do only faster/easier. For instance, the bot could post my messages to twitter, facebook, g+, etc. for me. It frequently also runs scripts such as this one, for playing games or funny messages, role-playing, etc..

  • Anime Lovers

    @yariplus Maybe I will use it when I realize that it is truly useful for me. At present, I'll just see it without use it.


  • @accalia ---

    • core:
      username: "Sekretore"
      password: "error"
      owner: "Domas"
      forum: "http://mywebiste.eu"
      plugins:
      summoner:
      messages:
      - "@%username%, You seem malnourished. Are you suffering from internal parasites?"
      - "@%username%. I challenge you to "clawplach"!"
      - "I wonder what the Shroud of Turin tastes like."
      - "Yeah, but did you ever play Jenga? Sometimes you take out one and... [imitates crashing]"
      - "It's good cholesterol, but it spreads like bad cholesterol."
      - "Zoidberg is afoot!"
      - "On margin. Zoidbee wants to buy on margin."
      - "Zoidbie want balloon! Want balloon now! Zoidbie want go outside!"
      - "Tired of Discourse? Why not @Zoidberg?"
      - "I took the liberty of fertilizing your caviar."
      - "I've had it with this game. I'm going for a scuttle."
      - "Doctor Zoidberg, soaking in brine."
      - "You lost the @%username% of your dreams, but you still have Zoidberg. YOU ALL STILL HAVE ZOIDBERG!"
      - "Sit down @%username%. Now open your mouth and lets have a look at that brain. "
      - "Young lady, I am an expert on humans. Now pick a mouth, open it and say "brglgrglgrrr"! "
      - "Hooray! People are paying attention to me!"
      - "I've performed a few mercy killings."
      - "It's been years since medical school, so remind me. Disemboweling in your species, fatal or non-fatal?"
      - "The frenzy is over. How am I going to get rid of my male jelly now?"
      - "Welcome to my life! :starts crying:"
      - "I don't like the looks of this doctor. I bet I've lost more patients than he's treated."
      - "What? My mother was a saint! Get out!"
      - "It's funny because it's poisonous!"
      - "Fine, then I'll have one of your young on a roll."
      - "Fine, just give me something crawling with parasites."
      - "And I'm his friend, Jesus!"
      - "Hooray! I'm a teenage heartthrob again!"
      - "There's a humongous fungus among us."
      - "I ate garbage yesterday, and it didn't cost me 300 dollars."
      - "Hey, boys and girls. It's Zoidberg, the loveable tramp."
      - "Hooray! A happy ending for the rich people."
      - "Switch bodies? I don't see why not. I also don't see why."
      - "The hell with your spoiled baby. I need those shoes."
      - "@%username%, look what you did! She won't shut up."
      - "Friends! Help! A guinea pig tricked me!!"
      - "Is it me maybe?"
      - "Once again, the conservative, sandwich-heavy portfolio pays off for the hungry investor."
      - "Ohhh, it's all so complicated, with the flowers, and the romance, and the lies upon lies."
      - "What's this? Two meals in one week?"
      - "Friends! Help! A @%username% tricked me!"
      - "Oh, no! Something's happening! What's happening?"
      - "Are you coming on to me?"
      - "At last, recognition!"
      - "Hello? I'll take eight!"
      - "Hooray! I'm helping!"

Suggested Topics

  • 2
  • 1
  • 6
  • 4
  • 6
| |