A Telegram bot built with Node.js and TeleBot that fetches random anime and manga information from the Jikan API, an unofficial MyAnimeList API. It provides details about anime titles, manga, and anime images through simple Telegram commands.
- Fetch random anime information (title, duration, rating, score, synopsis, and members).
- Fetch random manga details with images.
- Fetch random anime images.
- Responds to greetings with friendly messages.
- Sticker replies for fun interactions.
- Node.js v18 or later installed. Download Node.js
- Telegram account and a Telegram bot token from BotFather
- Clone the repository:
git clone https://github.com/abdellahaarab/AnimeTeleBotSJ.git
cd AnimeTeleBotSJ
- Install dependencies:
npm install
- Configure your bot token:
- Open the main bot file (e.g.,
index.js
orbot.js
) - Replace
"Your Token"
with your actual Telegram bot token.
- Run the bot:
node index.js
Use the following commands in your Telegram chat with the bot:
Command | Description |
---|---|
/start |
Start interaction and welcome msg |
/hello |
Say hello to the bot |
/anime |
Get a random anime information |
/manga |
Get a random manga and its image |
/image |
Get a random anime cover image |
The bot also responds to common greetings like “hi” and “hello” and sends a fun sticker when you send any sticker.
This image shows the results of static analysis tools run on the project, ensuring code quality and maintainability.
This project is licensed under the MIT License.
If you have any questions or want to contribute, feel free to open an issue or pull request.