Skip to content
Telegram Bot for BlockArcade!
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
airdrop.js
bot.js
dappRanking.js
iost.js
leaderboard.js
leaderboard.png
package-lock.json
package.json
refundPending.js
rendered.png
telegram.js
validIOSTAccount.js
vote.jpg
voterRewards.js

README.md

BlockArcade Telegram Bot

This is a work in progress.

Usage

Start by cloning this repository using git:

git clone https://github.com/blockarcade/blockarcadebot.git

Now cd into the repository:

cd blockarcadebot

Then install the Node.js dependencies:

npm install

You'll need to get an API key for our bot, you can get this from @botfather. Once you have this I recommend sticking it in a bash called config.sh so you can easily set the required environment variable:

export TELEGRAM_BOT="bot..."

With this file created you can load the environment variable:

source ./config.sh

Now you're ready to run the bot!

node bot.js

Structure

  • bot.js is the main file, this is where you will add your commands.
  • telegram.js is where the default Telegram room is set.
You can’t perform that action at this time.