Giter VIP home page Giter VIP logo

bots's Introduction

osdc-bots ๐Ÿค–

Compilation of all the bots made for simplifying the repetetive tasks on various community platforms of OSDC.

Telegram Bot Setup Guide

Setup Golang

Clone the bots repository

$ git clone https://github.com/osdc/bots
$ cd bots
$ git checkout -b <new-branch-name>

Get the TELEGRAM_API Token

  1. Ping @BotFather on Telegram.
  2. Send the message /start
  3. Read the instructions and make a new bot for your personal testing by /newbot command.
  4. Give a suitable name and username to the bot.
  5. Youโ€™ll get your bot API token as 89xxxxxxx:xxxxxxxxxxxxAAHmf32ZghS-cqxBLfnkUx9VwoXeOIRlnUQ.
  6. Copy it and save it in a file named as /.env/ in your project folder.

Build & Execute the bot

  1. In the telegram-bots directory, run go build .
  2. Export the Telegram API Token by running export TELEGRAM_TOKEN=<your-token> in the telegram-bots directory using terminal.
  3. The build creates an executable with the name telegram-bot. Run it using ./telegram-bot.
  4. Ping your bot at @<username_set>. Youโ€™l find the bot up and running.

bots's People

Contributors

sidntrivedi012 avatar daemon1024 avatar primalpimmy avatar delusionaloptimist avatar nightwarriorftw avatar arnav-khare avatar kaybhutani avatar reapedjuggler avatar aaryanporwal avatar osbins avatar starkah avatar

Watchers

James Cloos 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.