Code Monkey home page Code Monkey logo

chatbot-csharp-sample's Introduction

CSharp-Chatbot-Sample

A sample IRC Twitch chatbot using written in C#.

What's in this sample

This sample demonstrates how to write a simple Twitch chatbot through IRC. The chatbot connects to a Twitch channel's chat via IRC, reads messages from chat, responds to a few simple commands, and maintains the connection by PINGing and PONGing as needed.

How to edit this Bot and use it yourself

  • Generate an OAuth Token per the instructions from the Twitch IRC documentation
  • Create a new C# Console Application
  • Download the TwitchChatBot.cs file
  • Add the TwitchChatBot.cs file into your project
  • Download the Pinger.cs file
  • Add the Pinger.cs file into your project
  • Download the Program.cs file
  • Overwrite the existing Program.cs file in your project with the contents from this Program.cs file.
  • Update the namespace in your files as they need to match the name of your project rather than "Chatbot_Demo"
  • Update the three variables in the Program.cs file with the credentials specific to you ("login_name" is the Twitch username of your bot, "token" is the token generated from step 1, and "channels_to_join" is the Twitch channel(s) chat you want your bot to join)
  • Run the project. Open the channel you're testing chat with and talk to your bot

chatbot-csharp-sample's People

Contributors

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