Git Product home page Git Product logo

botty's Introduction

botty

Tiny IRC bot written in C using Unix sockets.

Building

Just run

make
botty/botty

at the project root. Alternatively, if you have mdtool installed, you can do

mdtool build 
botty/bin/Debug/botty

or

mdtool build -c:Release
botty/bin/Release/botty

for different configurations.

Configuration

At this moment, configuration is done via #define preprocessor directives. I might implement an actual configuration file in the future(but not the foreseeable future).

Features

Right now, all it does is connect to an IRC server, join a channel and say "Hello!". It will also respond to ".bots" with "Reporting in! [C]". This project is mainly a learning exercise so I don't see myself implementing a lot of features.

Oh, it also has no memory leaks, at all. (as of commit 85708a)

Never mind, OpenSSL does a fairly good job at leaking lots of memory. However, without SSL, there are still no leaks.

==30443== HEAP SUMMARY:
==30443==     in use at exit: 0 bytes in 0 blocks
==30443==   total heap usage: 613 allocs, 613 frees, 110,733 bytes allocated
==30443== 
==30443== All heap blocks were freed -- no leaks are possible
==30443== 
==30443== For counts of detected and suppressed errors, rerun with: -v
==30443== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==30441== 
==30441== HEAP SUMMARY:
==30441==     in use at exit: 0 bytes in 0 blocks
==30441==   total heap usage: 80 allocs, 80 frees, 35,174 bytes allocated
==30441== 
==30441== All heap blocks were freed -- no leaks are possible
==30441== 
==30441== For counts of detected and suppressed errors, rerun with: -v
==30441== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Known issues

  • Quit message doesn't work for some reason (apparently, this is server behavior. unregistered clients or clients that have only recently joined have their quit message overriden "to prevent spam" on Rizon. I can't see how that prevents spam, but eh. NickServ support coming soon. /rant)

botty's People

Contributors

hexafluoride avatar benwaffle avatar

Watchers

James Cloos 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.