Skip to content

ammezie/cryptobot

Repository files navigation

cryptobot

A bot to compare cryptocurrencies

Getting Started

Clone the project repository by running the command below if you use SSH

git clone git@github.com:ammezie/cryptobot.git

If you use https, use this instead

git clone https://github.com/ammezie/cryptobot.git

Install Dependencies

cd into the project directory and run:

composer install

Duplicate .env.example and rename it .env

Run:

php artisan key:generate

Create a Slack app

Visit the Slack API website in order to create a new Slack app. Then visit https://botman.io/2.0/driver-slack to see how to configure your app. Once you've installed your app, paste the Bot User OAuth Access Token in .env:

SLACK_TOKEN=YOUR_SLACK_BOT_USER_TOKEN

Create a Telegram bot

Visit https://core.telegram.org/bots to create a Telegram bot. Then visit https://botman.io/2.0/driver-telegram to see how to configure your bot. Then paste your API Token in .env:

TELEGRAM_TOKEN=YOUR-TELEGRAM-TOKEN

Finally, run:

php artisan serve

and visit http://localhost:8000/ to see the application in action.