Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Mibbit Chat, IRC Bot & SMF forum integration  (Read 12151 times)

0 Members and 1 Guest are viewing this topic.

Urbanite

    Topic Starter


    Greenhorn

    Mibbit Chat, IRC Bot & SMF forum integration
    « on: February 27, 2009, 03:30:20 AM »
    Just following up on a post made on the SMF forum by the good MrHope where he had suggested the means of a Bot with a script that sends ‘chat’ information back to the forum index page, as is done on this forum.

    http://www.simplemachines.org/community/index.php?topic=245213.40

    I would be grateful if he or anyone with the knowledge would respond and perhaps give other SMF users an insight into the method.

    TIA



    Users in chat (2):
    ComputerHope, guest_41
    guest_41 recently said: "xxxx”
    Total logins: 21,367. Total lines typed: 327,460. Last action: February 27, 2009, 3:5:19 (MST).
    Join the chat now (IRC: irc.mibbit.com #computerhope) - Stats


    « Last Edit: March 09, 2009, 09:15:55 AM by Urbanite »

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Mibbit Chat, Bot & SMF forum integration
    « Reply #1 on: February 27, 2009, 12:07:29 PM »
    Not sure what it is you need to know...
    If it's a SMF plugin or patch i'm sure someone will be along to advise...
    Zylstra i believe works the chat server...
    " Anyone who goes to a psychiatrist should have his head examined. "

    Urbanite

      Topic Starter


      Greenhorn

      Re: Mibbit Chat, Bot & SMF forum integration
      « Reply #2 on: March 02, 2009, 04:50:33 AM »
      Thanks for your reply patio.

      Essentially what I am asking is how to have the Bot send back users in chat info etc, and how to make this show on the bottom of the forum as is done in this site.

      Computer Hope Admin

      • Administrator


      • Prodigy

        Thanked: 248
        • Yes
        • Yes
        • Yes
        • Computer Hope
      • Certifications: List
      • Computer: Specs
      • Experience: Guru
      • OS: Windows 10
      Re: Mibbit Chat, Bot & SMF forum integration
      « Reply #3 on: March 02, 2009, 05:19:04 AM »
      Well the bot I did for the forum is actually a custom bot I wrote. But here is what it is doing to help maybe explain it better.

      - On each new user login or logout and/or 10-15 new text lines do the below
      - Generate new .js (javascript) file containing the information about who's logged in, what was last said, etc. I do a .js file because I can then just refer to that file from SMF and any other page.

      I'm just doing:
      <script language="JavaScript" src="http://www.computerhope.com/chat.js"></script>
      and the chat.js file just has javascript document writes in it with quotes if any escaped out.

      - Once generated FTP the .js file (as well as the chat stats) to the server.

      Unfortunately I'm not one to share the hopebot source (who's controlling the above functions) because I don't have the time to handle trying to support those downloading the code.

      Hope that helps.

      p.s. I'm MrHope on SMF.

      Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
      -Albert Einstein

      WillyW



        Specialist
      • Thanked: 29
      • Experience: Experienced
      • OS: Windows XP
      Re: Mibbit Chat, Bot & SMF forum integration
      « Reply #4 on: March 02, 2009, 10:29:33 AM »
      ...
      I would be grateful if he or anyone with the knowledge would respond and perhaps give other SMF users an insight into the method.
      ...

      If you elect to use an Eggdrop bot - or Windrop -  then there are a LOT of scripts available, that will gather the info for you.

      See   http://www.egghelp.org/tcl.htm

      However, exactly how to interface it with SMF,  I really don't know.   That might take some experimenting, etc.

      The scripts there gather the information, and assemble it in different formats - some even create html pages for you.   Some even do the ftp sending.
      You'd have to install the bot first, then experiment with each script with the bot to see what might work for you.

      I thought I heard once, somewhere,  that the bot here on Computerhope uses PISG , and I just saw a new script released on the egghelp site that mentions that it outputs PISG.
      I have no idea about what it is, nor how to use it though.    :)

      The scripts there that generate HTML, I have played with some.   Just played around though.

      I hope this helps.



      .



      Urbanite

        Topic Starter


        Greenhorn

        Re: Mibbit Chat, Bot & SMF forum integration
        « Reply #5 on: March 09, 2009, 08:46:40 AM »
        Thanks for the reply and insight MrHope, I respect your wishes of not offering support for your script, we all got a life to live.

        If however you were so good as to release the script I'm sure there are others who would be prepared to take up the mantle and it would at least give other SMF users something to go on.

        With your permission I could place it on the SMF Forum and state that it’s without support although I think you would be missing out on the credit that you deserve from the community for your contribution.

        Urbanite

          Topic Starter


          Greenhorn

          Re: Mibbit Chat, Bot & SMF forum integration
          « Reply #6 on: March 09, 2009, 09:15:22 AM »
          If you elect to use an Eggdrop bot - or Windrop -  then there are a LOT of scripts available, that will gather the info for you.

          Thanks for your views WillyW, I think there might be issues with having Bots running on my hosts server and if thats the case what other method is there?


          Computer Hope Admin

          • Administrator


          • Prodigy

            Thanked: 248
            • Yes
            • Yes
            • Yes
            • Computer Hope
          • Certifications: List
          • Computer: Specs
          • Experience: Guru
          • OS: Windows 10
          Re: Mibbit Chat, IRC Bot & SMF forum integration
          « Reply #7 on: March 09, 2009, 10:59:18 AM »
          I'll take it into consideration Urbanite. Will have to do some code modifications before I were to release it.
          Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
          -Albert Einstein

          WillyW



            Specialist
          • Thanked: 29
          • Experience: Experienced
          • OS: Windows XP
          Re: Mibbit Chat, Bot & SMF forum integration
          « Reply #8 on: March 09, 2009, 11:12:45 AM »

          Thanks for your views WillyW, I think there might be issues with having Bots running on my hosts server

          Then I'm a bit confused.... as this whole thread and your request for Hopebot's script,  is about running a bot.

          Quote
          and if thats the case what other method is there?

          I don't know.  Sorry.


          .



          Urbanite

            Topic Starter


            Greenhorn

            Re: Mibbit Chat, IRC Bot & SMF forum integration
            « Reply #9 on: March 10, 2009, 11:32:33 AM »
            Hi WillyW just to clarify, as 24hour uptime for a Bot is necessary I can place a Bot on one of the work PC’s …and already have, but I also know that Mibbit will provide a Bot for your #room although I'm not sure if it can be configured with the likes of a HopeBot.

            I was simply asking the question  :)


            Computer Hope Admin

            • Administrator


            • Prodigy

              Thanked: 248
              • Yes
              • Yes
              • Yes
              • Computer Hope
            • Certifications: List
            • Computer: Specs
            • Experience: Guru
            • OS: Windows 10
            Re: Mibbit Chat, IRC Bot & SMF forum integration
            « Reply #10 on: March 10, 2009, 01:16:47 PM »
            Yeah the Mibbit bots would not have the capabilities that hopebot does since it's actually taking data and moving it to a FTP site.
            Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
            -Albert Einstein