Coder Social home page Coder Social logo

vsimbot's Introduction

vsimbot

vsimbot is an irc bot. Its features are specific to chess.

Commands

  • finger / fi / "who is" / "who's" [icc handle]: prints the title, name, fide std rating and fide profile url of a player if available. e.g.: who is capilanobridge?

  • [pgn] / [fen]: posts the pgn or fen/epd to lichess.org and prints the url. The command only supports basic pgn—no variations or comments. The command is also known to not recognize some fen/epd strings. e.g.: Look at this game! [Event "Kiel"] [Site "Kiel"] [Date "1893.??.??"] [Result "0-1"] [White "Lindemann"] [Black "Echtermeyer"] [ECO "B01"] 1.e4 d5 2.exd5 Qxd5 3.Ke2 Qe4# 0-1

  • join / part: joins/parts your channel if the command is issued from the bot's channel

  • eval [fen]: prints the engine evaluation of the position

  • eco [eco code]: prints the name and moves of an opening

  • alert [icc handle]: enables alerts when a player goes online or offline on ICC (command only available to channel owner). use the same command to disable alerts.

experimental challenge command

  • challenge on / off: enables/disables viewer challenges queue (available to channel owner only)

  • challenge [chess.com handle]: join the queue to challenge the broadcaster to a game. players can only join the queue once and must wait until their name has been removed from the queue to join again.

  • challenge next: removes the player at the front of the queue and prints the next challenger name (available to channel owner only)

  • challenge queue: prints the twitch names of players in the queue

  • challenge clear: removes the player from the queue. Clears the entire challenge queue if issued by the channel owner

  • challenge info: prints some usage info related to the challenge command

vsimbot's People

Contributors

ornicar avatar snyk-bot avatar vincentsimard avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ornicar ddugovic

vsimbot's Issues

ICC www6 unavailable

In my fork aside from integrating dependabot, after ICC made www6 unavailable I attempted to fix the "finger" command, but couldn't figure it out.

Twitch IRC migration?

Either I'm misunderstanding something or I cannot authenticate my bot to irc.chat.twitch.tv...

$ node index.js 
(node:30969) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Request to use token, but token was unavailable to the client.
[17:13:26] 11 Jan 17:13:26 - Sending irc NICK/USER
[17:13:26] *** connecting to irc.chat.twitch.tv... 
[17:13:27] 11 Jan 17:13:27 - SEND: PASS password
[17:13:29] 11 Jan 17:13:29 - SEND: NICK godelescherbot
[17:13:31] 11 Jan 17:13:31 - SEND: USER godelescherbot 8 * vsimbot
[17:13:40] 11 Jan 17:13:40 - Connection got "end" event
[17:13:40] 11 Jan 17:13:40 - Connection got "close" event
[17:13:40] 11 Jan 17:13:40 - Disconnected: reconnecting
[17:13:40] 11 Jan 17:13:40 - Waiting 2000ms before retrying
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: socket hang up
    at createHangUpError (_http_client.js:254:15)
    at TLSSocket.socketOnEnd (_http_client.js:346:23)
    at emitNone (events.js:91:20)
    at TLSSocket.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

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.