GameChangerv2.2

A script to listen to chat messages and respond to a specific prefix

लेखक
BadNintendo
दैनिक इंस्टॉल
0
एकूण इंस्टॉल
10
रेटिंग
0 0 0
आवृत्ती
2.2
बनवली
2023-05-18
अपडेट केली
2023-05-18
आकार
38.2 KB
License
MIT
यांवर लागू होते:

User Guide

Welcome to our chatbot! It's designed to engage with you through commands and provides interactive elements like player interaction and sentiment analysis. Here's how you can get started:

Commands

  1. Magic 8 Ball: If you're in the mood for a whimsical prediction or response to your question, you can use our magic 8-ball feature. Type !8ball followed by your question. For instance, !8ball will it rain tomorrow? The bot will give you a random and fun response, akin to a real magic 8-ball.

  2. Greeting: If you'd like to get a friendly greeting from our bot, simply type !hello. The bot will respond with a warm hello to make your day.

Player Interaction

  1. Attack: Engage in a friendly duel with other users by typing !slash followed by the username of the player you wish to attack. For example, !slash John will initiate an attack on John, decreasing their health randomly between 0% and 80%. Beware, if your targeted player's health is already at 0%, the attack rebounds, causing damage to you.

  2. Save: If you feel like playing the hero, you can restore the health of another player. Use the !save command followed by the player's username, like !save John. This will transfer some of your health to them, ranging from 1% to 80%. However, if your health is below 5%, you won't be able to perform this action.

Remember, to keep things fair, there's a cooldown period of 24 hours for attacking or saving the same player.

Blackjack:

  1. Start a New Game: To start a new game, you enter the command !blackjack. This will deal you and the dealer two cards each. The objective of the game is to get as close as possible to a total of 21, without going over.

  2. Card Values: The cards from 2 to 10 are worth their face value, while Jacks, Queens, and Kings are each worth 10. An Ace is worth either 1 or 11, whichever is more advantageous for the current hand.

  3. Game Progress: After receiving your initial two cards, you can decide whether to "hit" or "stand".

    • Hit: If you choose to "hit", you will be dealt an additional card. You can continue to hit until you decide to stand or until your total exceeds 21, at which point you bust and automatically lose the game. To hit, type !hit.
    • Stand: If you choose to "stand", you are deciding to not receive any more cards. You believe your current total will be closer to 21 than the dealer's total. To stand, type !stand.
  4. End of the Game: The game ends in one of the following scenarios:

    • Player Busts: If your total exceeds 21 at any point, you bust and automatically lose.
    • Dealer's Turn: After you stand, it's the dealer's turn. The dealer will continue to hit until their total is 17 or higher, at which point they must stand.
    • Determining the Winner: After the dealer stands, if their total is closer to 21 without exceeding it, they win. If your total is closer, you win. If both you and the dealer have the same total, it's a draw. If the dealer busts, you win.

Sentiment Analysis

Our chatbot gauges the overall sentiment of your messages and adjusts the color of your username in the chat box. Positive sentiment earns you a green color, negative sentiment turns your name red, and neutral sentiment results in a grey color.

Greetings on Arrival

When you join the chat room, our bot will welcome you with a random greeting from its list of predefined messages.

Health Reset

Every player gets a fresh start each day at midnight with their health fully restored. Similarly, refreshing the webpage also resets everyone's health.

That's it! Have fun chatting and interacting with other users. Remember, this is all in good fun, so keep your conversations friendly and respectful!