LouisSchmieder / vtwitchbot

Twitch Chat Bot written in V

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VTwitchBot

VTwitchBot is a Twitch chat bot written in the language V

Features

The bot is able to:

  • connect to Twitch chat rooms
  • receive messages (only command handle at the moment)
  • handle commands

TODO

  • moderate chat
  • split up in two modules (irc and twitchbot)
  • interface for handling messages
  • async message reading

Installation

v install prooxeydev.vtwitchbot

Example

import vtwitchbot

fn main() {
    commandmap := {
        '!help': 'This is help'
    }

    mut twitchbot := vtwitchbot.TwitchBot{
        oauth: 'oauth:<token>'
        nick: '<botusername>'
        channel: ['<channelname>']
        commandmap: commandmap
    }
    twitchbot.connect()
}

About

Twitch Chat Bot written in V

License:MIT License


Languages

Language:V 97.4%Language:AMPL 2.6%