Code Monkey home page Code Monkey logo

basic-irc-bot's Introduction

#Basic IRC Bot

####What is this about? This is a simple project designed to impliment a feature of a Dark n Edgy IRC bot named, RedHatShill. The Bot responds to messages of :| with, "[user]: Colon Pipe!". While it's a silly feature, I like it, and a such I programmed a bot to respond to that in Python...and basically only that (aside from .help, .disconnect, and the PING messages).

####Requirements

  • Python 3...that's it. Just download the file and run: python3 "Basic IRC Bot.py" and it should run.

####How to use First you need to open up Basic IRC Bot.py and find where it says channel and replace what it says in the quotes after the equal sign (should look something like channel = "#schoolsurvival"] with the desired channel. If you want to change the Username then change the nick value (should look like nick = "RHS-SapeinBot|Py") which should also be between quotes. When you start it up enter in the server. Valid server addresses are irc.x.x or an IPv4 address (xxx.xxx.xxx.xxx) or localhost.

You also want to change "Chanku" on line 77 of the python file to your username.

You can start it from the command line(in any non-windows OS) with python3 Basic\ IRC\ bot.py or python3 "Basic IRC bot.py"

##PFAQ's (Possibly Frequently Asked Questions) ####Is the connection encrypted? No, it uses plain text on port 6667.

####Why isn't the connection encrypted Because I don't want too. It's not that it's complicated, it isn't. I just don't care about it being encrypted.

####Does it do logging? No, it only responds when a user types :|, or if you tell it to disconnect...or if a user says .help...

####Why do I have to edit the python file? Why not do it through a config? Because that would be bloat. It's simply unnecessary because I don't really expect this to be used much...that and the fact that I only really intend for it to be on one server/channel at all.

####Why only one channel? Because I really have no need to make it multichannel. However if I see a reason/need for me to do so then I will. Otherwise I probably won't.

####What does this bot do? It really only responds with "[user]:Colon Pipe!" when a user sends :| to the server. It can only connect to one channel and server per-instance...because I'm a lazy fuck who doesn't care.

####Why use this? If you want a bot to respond "[user]:Colon Pipe!" to users when they say :|, then this is for you! It has no unnecessary bloat either.

####Why do you use Python3? Short answer: It's easy. Long asnger: Python 3 is the 'future' of python, while python 2.x is not. Further there only other language I could have implimented in was Java, and that would require a whole library. Further I wanted to write my own IRC bot. So basically, because it's easy.

basic-irc-bot's People

Contributors

sapein avatar

Watchers

 avatar  avatar

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.