https://github.com/osdc/bots
Bots for OSDC Community Channels.🤖🤖
https://github.com/osdc/bots
golang irc-bot ruby telegram-bot
Last synced: 4 months ago
JSON representation
Bots for OSDC Community Channels.🤖🤖
- Host: GitHub
- URL: https://github.com/osdc/bots
- Owner: osdc
- License: mit
- Created: 2019-11-18T17:49:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T02:04:12.000Z (over 3 years ago)
- Last Synced: 2024-06-21T18:53:34.774Z (almost 2 years ago)
- Topics: golang, irc-bot, ruby, telegram-bot
- Language: Go
- Homepage:
- Size: 2.33 MB
- Stars: 6
- Watchers: 7
- Forks: 24
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
* Open [Getting Started - The Go Programming Language](https://golang.org/doc/install#install)
* Follow the setup instructions as per your Operating System.
* Do make sure you have the Go version 1.13.
* Test your installation - https://golang.org/doc/install#testing
## Clone the bots repository
```
$ git clone https://github.com/osdc/bots
$ cd bots
$ git checkout -b
```
## 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=` 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 @. You’l find the bot up and running.