Giter Club home page Giter Club logo

irc-voice-bot's Introduction

IRC Voice Bot

A bot that voices active users in a channel, and devoices them after a certain period of time.

Installation

  • Clone the repository
  • Copy conf/config.example.yml to conf/config.yml
  • Edit conf/config.yml to your desires.
  • Run bundle install
  • Start the bot using ruby bot.rb

irc-voice-bot's People

Contributors

dependabot[bot] avatar zarthus avatar

Watchers

 avatar  avatar

irc-voice-bot's Issues

Voice entries can be added multiple times.

From the following autovoice debug log:

{#<Channel name="#lobby">=>
  [#<VoicedUser @expiry=#<VoiceExpiry expiry=1451502642 in="2064s"> @channel=#<Channel name="#lobby"> @user=#<User nick="SpaceDebris">>,
   #<VoicedUser @expiry=#<VoiceExpiry expiry=1451502591 in="2013s"> @channel=#<Channel name="#lobby"> @user=#<User nick="Blizzard">>,
   #<VoicedUser @expiry=#<VoiceExpiry expiry=1451502823 in="2245s"> @channel=#<Channel name="#lobby"> @user=#<User nick="Fadi">>,
   #<VoicedUser @expiry=#<VoiceExpiry expiry=1451501571 in="993s"> @channel=#<Channel name="#lobby"> @user=#<User nick="Fadi">>,
   #<VoicedUser @expiry=#<VoiceExpiry expiry=1451501688 in="1110s"> @channel=#<Channel name="#lobby"> @user=#<User nick="justastranger">>,
   #<VoicedUser @expiry=#<VoiceExpiry expiry=1451502948 in="2370s"> @channel=#<Channel name="#lobby"> @user=#<User nick="Zarthus">>,
   #<VoicedUser @expiry=#<VoiceExpiry expiry=1451502933 in="2355s"> @channel=#<Channel name="#lobby"> @user=#<User nick="MrRatermat">>]}

The user fadi was added twice.

This seems to be a case of threading issues, considering multiple messages in rapid succession seem to reproduce it.

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.