Giter Club home page Giter Club logo

twitch-mybot's Introduction

twitch-mybot

My Twitch Bot. For every function you can set a cooldown, so user aren't able to spam a command.

Functions

  • Remove links from chat (!permit [username] [duration])
  • Remove messages that contain more than 90% capitalized letters (emotes doesn't count)
  • !echo Repeats the message
  • !uhr Writes the kurrent time
  • !debug Writes some debug-lines in the chat
  • !social Show links to socialmedia sites

Aliases

  • !uhr
    • !uhrzeit
  • !social
    • !hp
    • !socials
    • !website
    • !webseite
    • !homepage

Setup

Clone repository: git clone [email protected]:EchtkPvL/twitch-mybot.git

Change directory: cd twitch-mybot/

Install needed modules: npm install

Copy config.js.example to config.js and insert credentials.

Start Bot: node index.js

Known issues

TypeError: Cannot read property 'resolveNs' of undefined
    at check_link (/home/echtkpvl/twitch-mybot/index.js:151:34)
    at client.on (/home/echtkpvl/twitch-mybot/index.js:72:9)
    at client.EventEmitter.emit (/home/echtkpvl/twitch-mybot/node_modules/tmi.js/lib/events.js:101:25)
    at client.EventEmitter.emits (/home/echtkpvl/twitch-mybot/node_modules/tmi.js/lib/events.js:64:19)
    at client.handleMessage (/home/echtkpvl/twitch-mybot/node_modules/tmi.js/lib/client.js:1003:34)
    at parts.forEach (/home/echtkpvl/twitch-mybot/node_modules/tmi.js/lib/client.js:1080:36)
    at Array.forEach (<anonymous>)
    at client._onMessage (/home/echtkpvl/twitch-mybot/node_modules/tmi.js/lib/client.js:1079:11)
    at WebSocket.onMessage (/home/echtkpvl/twitch-mybot/node_modules/ws/lib/event-target.js:120:16)
    at emitOne (events.js:116:13)

Fix: Update NodeJS (I'm using v14.15.0)

Copyright

Note that this repository is distributed under the MIT License. See LICENSE for details.

twitch-mybot's People

Contributors

echtkpvl avatar

Stargazers

 avatar

Watchers

 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.