wanderlust-li / EnemyLossTrackerBot

Bot where you can learn about enemy losses

Home Page:https://t.me/EnemyLossTracker_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EnemyLossTrackerBot πŸ€–

This repository contains the source code for a Telegram bot, written using Google Apps Script, that utilizes the API from the website russianwarship.rip to track enemy losses.

πŸ–ΌοΈ Screenshots

Screenshot of the application

πŸš€ Getting Started

πŸ“š Prerequisites

  1. Google account. If you don't have one, create a Google account.
  2. Bot token from BotFather in Telegram. If you don't have the token, create a new bot in Telegram.

πŸ€– Access the bot

You can access the bot by clicking this link.

πŸ“– Further Reading

  • To learn more about the development of this bot, you can read this discussion.

πŸ“ Instructions

  1. Open Google Apps Script and create a new project.
  2. Copy the entire code from code.js in this repository and paste it into the Apps Script editor.
  3. Replace const token = '' with your Telegram bot's token.
  4. Replace const hookUrl = '' with your Google Apps Script's URL (Publish > Deploy as web app > copy 'Current web app URL').
  5. Save the project with a relevant name.
  6. From the top menu, select Publish > Deploy as web app.
  7. Under 'Project version', select 'New' and make a note about the project. Then, click 'Deploy'.
  8. Copy the 'Current web app URL' and paste it into const hookUrl = ''.
  9. Save and run the function setWebhook() to set up your Telegram bot's webhook.
  10. Your bot should now be functional. Start a conversation with it in Telegram.

πŸ› οΈ Built With

πŸ‘₯ Authors

πŸ™Œ Acknowledgments

About

Bot where you can learn about enemy losses

https://t.me/EnemyLossTracker_bot


Languages

Language:JavaScript 100.0%