Set up the bot - A7F/mtg-telegram-assistant GitHub Wiki
Very easy stuff here. You're going to edit a file so bring your favourite text editor with you and... the token you got from botfather. Let's start.
- remember where you cloned this repo on step 3 of install dependencies? Navigate straight there so you should have the folder named
mtg-telegram-assistantright in front of you. - open the folder
mtg-telegram-assistant - open the
configfolder so your path should now be<your-path>/mtg-telegram-assistant/config - open the file
config.jsonwith a text editor - put the token in between the commas
the file should now look like this:
{
"token": "112233446:AAHAJyAvqkZw_uIPYaRKjg0rry8svJKmlmY",
"cli_mode": true,
"group_id": 0,
"channel_id": "@yourchannel",
"welcome": false,
"social": {
"twitter": "",
"facebook": "",
"youtube": "",
"twitch": "",
"discord": "",
"instagram": "",
"channel": ""
},
"master": [
178781601
],
"locale": "en",
"database": {
"path": "./bot_database.db"
},
"rss": {
"poll_time": 4600,
"post_to": "",
"limit": 2,
"links": []
}
}
- save and exit. Done! If you want to know how to tweak this file to customize your bot even more, take a look here.
NOTE: database username and password fields are not implemented yet, as well as the locale. Sorry!