Skip to content
Richard Banks edited this page Aug 16, 2014 · 2 revisions

Description:

The Tag plugin allows users in a channel to play a simple tag game.

Dependencies:

This plugin has no dependencies other than Cinch.

Required Eve Plugins/Helpers:

Without this helper, the bot will throw an exception saying that check_ignore is an unidentified method or variable. If you've removed this from the bot, please put it back. If you're using just this plugin for your own bot, please check out the cinch-tag gem instead.

Configuration:

In order for this plugin to work the following is required to insert into Eve.rb for operation.

At the beginning of Eve.rb in the required scripts section put this:

require_relative "lib/eve/plugins/tag"

In the c.plugins section of Eve.rb put this:

[Cinch::Plugins::Tag]

Usage:

The bot comes with a comprehensive help system and the Tag plugin was incorporated by default. You can use the !help tag command to get a full list of commands:

  • !tag start: Starts a game of tag in the channel in which it is invoked.
  • !tag (user): Tag a user and they become 'it'.
  • !tag quit: This command will end the game of tag.

Here's an example of the game being played:

[21:40:02] <@Namaste> ~tag start [21:40:02] <@Eve> New tag game started! Namaste is it! [21:40:06] <@Namaste> ~tag Mikachu [21:40:07] <@Eve> Namaste has tagged Mikachu. Mikachu is now it! [21:40:35] <~Mikachu> ~tag Namaste [21:40:35] <@Eve> Mikachu has tagged Namaste. Namaste is now it! [21:40:40] <@Namaste> ~tag quit [21:40:40] <@Eve> This tag game is over! Time to go home now!