MagicBoxBot is a LINEBot designed to bring fun and utility to its users. This bot includes a variety of small games and features like 1A2B, paper scissosr stone, calendar recording, and magic box AI. Whether you're looking for a fun game to pass the time or need a quick AI assistant, MagicBoxBot has got you covered!
- 1A2B Game: Start the game by typing "1A2B" to the bot. The bot will generate a random number, and you need to guess it.
- Rock-Paper-Scissors: Type "rock", "paper", or "scissors" to play against the bot.
- Calendar Record: Use the "add event" command followed by the event details to save reminders or events.
- AI Q&A: Simply type any question, and the bot will respond with an intelligent answer.
You can add MagicBoxBot to your LINE friends list by scanning the QR code below. Once added, you can start using all of the available features directly in your chat!
Link:https://line.me/R/ti/p/@544xkvdn

MagicBoxBot is powered by LINE Messaging API and hosted on a cloud server. To set it up:
-
Clone this repository to your local machine or server.
git clone https://github.com/konentung/MagicBoxBot.git cd MagicBoxBot -
Install the required dependencies:
pip install -r requirements.txt
-
Set up your LINE Messaging API credentials. You will need to create a LINE Developers account and get your channel's API credentials (Channel Secret and Channel Access Token).
-
Set up Ngrok for your computer to be a server link to line platform
-
Configure the bot by setting up the environment variables for the credentials in a
.envfile.(need mongodb_url and openai_api_key) -
Run the bot with:
python app.py