1.2.6 • Published 1 year ago

yfndx v1.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Truth or Dare Bot

A simple truth or dare bot using Telegraf.

Installation

1. Clone the Repository

First, clone the repository from GitHub:

git clone https://github.com/yfndx/yfndx.git

Navigate into the project directory:

cd yfndx

2. Install Dependencies

Install the necessary dependencies using npm:

npm install

Usage

To create and run the Truth or Dare bot, you can use the following code:

const { createTruthOrDareBot } = require('./path/to/your/module');

const bot = createTruthOrDareBot();

bot.launch().then(() => {
    console.log('Bot is running');
});

process.once('SIGINT', () => bot.stop('SIGINT'));
process.once('SIGTERM', () => bot.stop('SIGTERM'));

Custom Questions and Dares

You can provide your own custom questions and dares when creating the bot:

const { createTruthOrDareBot } = require('./path/to/your/module');

const bot = createTruthOrDareBot();

bot.launch().then(() => {
    console.log('Bot is running');
});

process.once('SIGINT', () => bot.stop('SIGINT'));
process.once('SIGTERM', () => bot.stop('SIGTERM'));

Environment Variables

You need to create a .env file in the root directory of your project with the following content:

BOT_TOKEN=your-telegram-bot-token

This file will be used to store the bot token you received from the BotFather on Telegram.

Features

  • Single Player Mode:

    Play alone by choosing between Truth and Dare.
  • Multiplayer Mode:

    Play with friends. Players can join the game, and the bot will manage turns automatically.
  • Customizable Questions and Dares:

    Provide your own set of questions and dares.
  • Player Turn Management:

    Ensures only the current player can perform their action and warns if another player tries to take a turn.
  • In-game Notifications:

    Tags all players in the game when a rule is violated.
  • Leave Game Option:

    Players can leave the game during the multiplayer mode.
  • Automatic Game End:

    The game ends automatically when only one player remains.
  • Clean-up:

    Inline keyboards are removed after game ends or mode changes to ensure smooth gameplay.

License

This project is licensed under the ISC License. See the LICENSE file for details.

Author

YFNDX

takcitajoktafbawipowopmawitcowoafewilzakwisenvughuvvuufivussarvupovvurilvulwowekozweefowegpowevfatwiggotwunawuduteate-thy-sonic-cezcesteate-thy-sonic-cibatteate-thy-sonic-cibiteate-thy-sonic-ciciteate-thy-sonic-cipfuteate-thy-sonic-cisoteate-thy-sonic-ciwgesteate-thy-sonic-coecteate-thy-sonic-cohilteate-thy-sonic-cojifteate-thy-sonic-conoteate-thy-sonic-coregteate-thy-sonic-cosoteate-thy-sonic-covretteate-thy-sonic-cowadateate-thy-sonic-cubrateate-thy-sonic-cubumteate-thy-sonic-cucateate-thy-sonic-cucejteate-thy-sonic-cudateate-thy-sonic-cufdelteate-thy-sonic-cuimuteate-thy-sonic-cujmovteate-thy-sonic-cuohuteate-thy-sonic-cupdemteate-thy-sonic-daaceteate-thy-sonic-dabezteate-thy-sonic-dacgubteate-thy-sonic-daczoteate-thy-sonic-daefuteate-thy-sonic-dahbusteate-thy-sonic-dakajteate-thy-sonic-damifiteate-thy-sonic-duwogteate-thy-sonic-ebekteate-thy-sonic-ebimocteate-thy-sonic-ebniteate-thy-sonic-ebusunteate-thy-sonic-ecanuteate-thy-sonic-edawiteate-thy-sonic-efbiteate-thy-sonic-efebecteate-thy-sonic-efukumteate-thy-sonic-egaliteate-thy-sonic-egmukteate-thy-sonic-egodeteate-thy-sonic-ejteteate-thy-sonic-ekepolteate-thy-sonic-ekwutteate-thy-sonic-eltugteate-thy-sonic-emfanteate-thy-sonic-emifuteate-thy-sonic-enewiwteate-thy-sonic-epadavteate-thy-sonic-epafateate-thy-sonic-epivatteate-thy-sonic-epjuteate-thy-sonic-epomuteate-thy-sonic-epupteate-thy-sonic-eraluteate-thy-sonic-ercalteate-thy-sonic-eseojiteate-thy-sonic-esoukteate-thy-sonic-jamroteate-thy-sonic-janukteate-thy-sonic-japtateate-thy-sonic-jauguteate-thy-sonic-javiteate-thy-sonic-javivteate-thy-sonic-jawiteate-thy-sonic-jeclijteate-thy-sonic-jeimteate-thy-sonic-jetlateate-thy-sonic-jezoteate-thy-sonic-jezsukteate-thy-sonic-jicoteate-thy-sonic-jidatteate-thy-sonic-jidwud
1.2.0

1 year ago

1.1.1

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.2.6

1 year ago

1.1.7

1 year ago

1.2.5

1 year ago

1.1.6

1 year ago

1.2.4

1 year ago

1.1.5

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.1.3

1 year ago

1.2.1

1 year ago

1.1.2

1 year ago

1.0.0

1 year ago

1.1.4

1 year ago