Giter Club home page Giter Club logo

elitebot's Introduction

IRC Bot

This is an IRC bot written in Python. It connects to an IRC server, authenticates using SASL if desired, and responds to various commands. It is also able to join and save channels that it is invited to.

Requirements

  • Python 3
  • A configuration file config.json containing the following variables:
    • BSERVER: the IRC server to connect to
    • BPORT: the port to use for the connection (can be preceded with a + to specify a secure connection)
    • BNICK: the desired bot nickname
    • BIDENT: the bot's ident
    • BNAME: the bot's real name
    • UseSASL: a boolean indicating whether or not to use SASL authentication
    • SANICK: the bot's SASL account name (if using SASL)
    • SAPASS: the bot's SASL password (if using SASL)

Usage

To run the bot, simply execute the script with python3 irc_bot.py. The bot will connect to the specified server and authenticate if necessary. It will then listen for commands and respond accordingly.

Commands

The following commands are recognized by the bot:

  • !quit: causes the bot to quit.
  • !join: makes the bot join the specified channel.
  • !part: makes the bot part the specified channel, or if not specified, the current channel.

Saving Channels

The bot is able to save a list of channels that it should automatically join upon connecting to the server.

Contributing

If you have any suggestions or improvements for the bot, feel free to create a pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.