Code Monkey home page Code Monkey logo

enemylosstrackerbot's Introduction

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

enemylosstrackerbot's People

Contributors

wanderlust-li avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.