Skip to content

Flaviobot is a bot that allows you to play the popular Italian TV game "La Ghigliottina" with friends on Slack.

License

Notifications You must be signed in to change notification settings

antoniocosentino/flaviobot

Repository files navigation

Flaviobot

Unit tests Uptime Robot

Flaviobot is a bot that allows you to play the popular Italian TV game "La Ghigliottina" with friends on Slack.

The goal is to be able to secretly store all the participants' words while the game is on and then reveal them all together when everybody has submitted a word. The bot is also able to store and update the players' scoreboard.

Flaviobot

The name Flaviobot is inspired by Flavio Insinna, the former host of the TV show (I should probably call it Liornibot now, but it doesn't sound that cool).

How does it work?

ℹ️   since the gameshow is in Italian, the bot "speaks" only Italian.

Bot invitation

The bot needs to be invited to your channel. It can also be a private channel. Just invite it as you would do with a real person. It will automatically accept and join.

Start of the game

When the TV game is starting you need to tell the bot to be ready to accept the words. The command is:

@flaviobot vai!

Activation

Sending a word to the bot

You can now direct message the bot and provide your word. It will be memorized, to be shared later. The bot will also inform (in the channel where he was activated) that a certain user has provided a word (without revealing the word, of course)

The word is sent in a direct message:

DM

The bot updates everybody in the channel:

Update

In case you change your mind you can still submit a new word, while the game is still open. The bot will remember only the last word provided.

Closing the game / revealing the words

Once everybody has submitted a word the game can be closed. The command is:

@flaviobot stop!

Stopping

The bot closes the game and reveals all the words that were submitted.

Announcing the correct word / updating the chart

Once the correct word is revealed in the TV show, it can be communicated to the bot. In this way, the bot will update the chart in case there were winners.

@flaviobot era {WORD}

Scores

In case there are winners, the updated chart will be revealed. Otherwise, the bot will just communicate that nobody guessed the right word.

No Winners

The scoreboard can be revealed at any time, by using this command:

@flaviobot classifica!

Scores COMMAND

How points are calculated

The amount of points each player receives is based on the number of participants in that specific game session:

n. of points = n. of players / n. of winners

For example, if there are 2 players and they both win, they get 1 point each. If there are 3 players and only 1 player guesses the word, he gets 3 points while the others get 0.

In case a player is playing alone, and there are no other challengers, the point will not be assigned, even if the word was correctly guessed.

Extra points

Since the score cannot contain decimals it might also happen that there are extra points to be assigned. For example, if there are 3 players but only 2 are guessing the word, each player should receive 1 point but then we have an extra point to assign. In this case, the point will be assigned to the player who answered correctly first.

How can I use it?

The bot right now is not distributed via the Slack App Directory. This means that, if you want to use it, you have to host it yourself somewhere and then install it in your workspace. In case you are interested in using the bot feel free to contact me. I might consider distributing it in the future if I see enough interest.

About

Flaviobot is a bot that allows you to play the popular Italian TV game "La Ghigliottina" with friends on Slack.

Topics

Resources

License

Stars

Watchers

Forks

Languages