Shenas is a telegram bot in Persian that lets a person set some answers to default questions and ask their friends to answer those questions to see how much they know them.
Before anything, you should clone the shenas repository into your computer:
git clone https://github.com/barahouei/shenas.git
When the code is on your computer, you need to first import shenas
database from database
folder into MySQL and then set the following environment variables in your machine:
Environment Variable | Description |
---|---|
TELEGRAM_APITOKEN |
Bot API token that you got from BotFather |
BOT_USERNAME |
Bot Username |
DB_NAME |
Database Name - shenas |
DB_USERNAME |
MySQL Username |
DB_PASSWORD |
MySQL Password |
After that you can go to shenas
folder and simply run the program with the following command:
go run .
Or build an executive file to run with the following command:
go build