Giter VIP home page Giter VIP logo

hackerb0t's Introduction

hackerb0t

###Summary A Twitch IRC Chatbot, written in C, without an IRC library.

100% of this program's creation was live streamed on my twitch channel (http://www.twitch.com/hackerc0w)

hackerb0t uses cJSON for JSON parsing (Copyright (c) 2009 Dave Gamble)

Fair warning

Please note that this is mostly intended to be an educational project. I started it to learn things about the C programming language, the winsock library and the IRC protocol (especially Twitch's modification of it).

If you do decide to (for whatever reason) use this bot in a "production" environment, please do not expect it to work 100% of the time. In fact, don't expect it to work at all. Needless to say, I'm not responsible for any damage done by this piece of software.

Commands

  • !ping
    • Writes "Pong" to the chat. Mainly for debugging purposes (i.e. testing if the bot is up and responding)
  • !saymyname
    • Writes the user's name to the chat. Again, mainly for debugging (tests if all the parameter stuff gets passed through correctly)
  • !title
    • Fetches the current channel's stream title from the Twitch API and displays it in chat.
  • !die
    • Writes a suicide note to chat and kills itself.
  • !suggest [suggestion]
    • Takes a string as an argument (can contain spaces) and appends that string to a file called "suggestions.txt", followed by a newline.
  • !uptime
    • Fetches the start time of the current channel's stream from the Twitch API and displays how long the stream has been running for in a nice format.
  • !botsnack
    • Writes "Mmmmmh, delicious Kreygasm" to chat (where Kreygasm is a Twitch emote)
  • !lurk [channel name]
    • Joins another Twitch streamer's chat and lurks there. Note that the channel name has to be supplied without the leading # (e.g. hackerc0w).
  • !unlurk [channel name]
    • Leaves a channel that was previously joined by !lurk
  • !sendto [channel] [message]
    • Displays message in channel's Twitch chat. Note that this only works if the bot is currently lurking in this channel.

hackerb0t's People

Contributors

chrboe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.