IRC Bot launguage?

Discussion in 'Programming General' started by sm321, Mar 21, 2012.

IRC Bot launguage?
  1. Unread #1 - Mar 21, 2012 at 6:12 AM
  2. sm321
    Joined:
    Nov 2, 2011
    Posts:
    2,514
    Referrals:
    1
    Sythe Gold:
    0

    sm321 Grand Master

    IRC Bot launguage?

    If you make an IRC bot, what language is it written in? I read an article and it said:

    The rest of the article can be found here http://www.wikihow.com/Develop-an-IRC-Bot. But what is actually the best? Thankyou.
     
  3. Unread #2 - Mar 21, 2012 at 7:45 AM
  4. novice
    Joined:
    Jun 21, 2008
    Posts:
    111
    Referrals:
    0
    Sythe Gold:
    0

    novice Active Member

    IRC Bot launguage?

    Whatever you like the best. If you don't have any programming experience I would go with python.
     
  5. Unread #3 - Mar 21, 2012 at 8:36 AM
  6. sm321
    Joined:
    Nov 2, 2011
    Posts:
    2,514
    Referrals:
    1
    Sythe Gold:
    0

    sm321 Grand Master

    IRC Bot launguage?

    Are there any that are more reliable? E.g. quicker less likely to crash etc?
     
  7. Unread #4 - Mar 21, 2012 at 2:03 PM
  8. iJava
    Joined:
    Nov 21, 2011
    Posts:
    1,184
    Referrals:
    9
    Sythe Gold:
    464
    Discord Unique ID:
    220055593568829441

    iJava .Previously known as RSGoldRush
    $200 USD Donor New

    IRC Bot launguage?

    C++ is probably the most stable but then it's the hardest.
     
  9. Unread #5 - Mar 22, 2012 at 4:09 AM
  10. sm321
    Joined:
    Nov 2, 2011
    Posts:
    2,514
    Referrals:
    1
    Sythe Gold:
    0

    sm321 Grand Master

    IRC Bot launguage?

    How many lines of script are you looking at for one like Dragon Dyce's one?
     
  11. Unread #6 - Apr 2, 2012 at 4:16 PM
  12. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    IRC Bot launguage?

    pirc bot is a Java implementation that's very easy to use.
     
  13. Unread #7 - Apr 3, 2012 at 6:31 PM
  14. PublicityFtF
    Joined:
    Mar 10, 2009
    Posts:
    1,178
    Referrals:
    0
    Sythe Gold:
    0

    PublicityFtF Guru
    Banned

    IRC Bot launguage?

    For something as simple as IRC bots, it's heavily dependant on how well the bot was programmed. Yes, python can be slow, but it can also do perfectly fine for things like this. As for crashes, this sounds again like programming flaws.
     
  15. Unread #8 - Apr 4, 2012 at 2:37 AM
  16. sm321
    Joined:
    Nov 2, 2011
    Posts:
    2,514
    Referrals:
    1
    Sythe Gold:
    0

    sm321 Grand Master

    IRC Bot launguage?

    Ok, thankyou.

    I haven't actually made anything yet, but I was wondering what was the most stable and quickest.
     
  17. Unread #9 - Apr 4, 2012 at 5:27 AM
  18. iJava
    Joined:
    Nov 21, 2011
    Posts:
    1,184
    Referrals:
    9
    Sythe Gold:
    464
    Discord Unique ID:
    220055593568829441

    iJava .Previously known as RSGoldRush
    $200 USD Donor New

    IRC Bot launguage?

    Here's a dicing script I made a month or so ago for shits and giggles. Very basic but uses the PircBot Framework/API.

    Source :

    Code:
    import java.io.IOException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import org.jibble.pircbot.IrcException;
    import org.jibble.pircbot.NickAlreadyInUseException;
    import org.jibble.pircbot.PircBot;
    
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    /**
     *
     * @author Owner
     */
    public class iDiceMain extends PircBot{
        
        
        public static void main(String[] args) {
                iDice dice = new iDice("irc.sythe-irc.org", "#test");
                dice.setVerbose(true);
        }
    }
    
    Code:
    import java.io.IOException;
    import java.util.Random;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import org.jibble.pircbot.IrcException;
    import org.jibble.pircbot.PircBot;
    
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    /**
     *
     * @author iJava
     */
    public class iDice extends PircBot {
        
        String rollAmountString[];
        int rollAmount, rolledNumber = 0;
        public iDice(String hostname, String channel) {
            try {
                this.setName("iDice");
                this.connect(hostname);
                this.joinChannel(channel);
            } catch (IOException ex) {
                Logger.getLogger(iDice.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IrcException ex) {
                Logger.getLogger(iDice.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        
        @Override
        public void onMessage(String channel, String sender,
                           String login, String hostname, String message) {
            if (message.startsWith("!dice")) {
                rollAmountString = message.split("e");
                rollAmount = Integer.parseInt(rollAmountString[1].trim());
                Random rand = new Random();
                rolledNumber = rand.nextInt(rollAmount) + 1;
                this.sendMessage(channel, "A "+rolledNumber+" was rolled on a dice with "+rollAmount+" chances.");
            }
        }
    }
    
    Hope that helps.
     
  19. Unread #10 - Apr 12, 2012 at 11:53 AM
  20. Kratom
    Joined:
    Jan 20, 2011
    Posts:
    1,129
    Referrals:
    1
    Sythe Gold:
    0
    Discord Unique ID:
    140619555339763712
    Discord Username:
    balln#3529

    Kratom Guru
    $5 USD Donor New

    IRC Bot launguage?

    mIRC Script Language is perfect for this and far easier to learn than something like Java or C++
     
  21. Unread #11 - Apr 12, 2012 at 4:59 PM
  22. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    IRC Bot launguage?

< Reading in Excel data | We offer you a new, high-quality installs service >

Users viewing this thread
1 guest


 
 
Adblock breaks this site