mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Update README.md
This commit is contained in:
parent
907857aa38
commit
7dfe667ae4
@ -19,19 +19,21 @@ And now, init the submodules with these commands (this is very important):
|
|||||||
cd lynx
|
cd lynx
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
```
|
```
|
||||||
Next, inside the repository directory, go to props folder and create a config.json file with the following content:
|
Next, inside the repository directory, go to props folder and create a `config.json` file with the following content:
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"botToken": "0000000000:AAAaaAAaaaaAaAaaAAAaaaAaaaaAAAAAaaa",
|
"botToken": "0000000000:AAAaaAAaaaaAaAaaAAAaaaAaaaaAAAAAaaa",
|
||||||
"admins": [0000000000, 1111111111, 2222222222],
|
"admins": [0000000000, 1111111111, 2222222222],
|
||||||
"lastKey": "0000a000a0000aaa0a00a0aaa0a000000",
|
"lastKey": "0000a000a0000aaa0a00a0aaa0a000000",
|
||||||
"lastSecret": "0000a000a0a0000aa0000aa00000000a"
|
"lastSecret": "0000a000a0a0000aa0000aa00000000a",
|
||||||
|
"weatherKey": "0000a000a0000aaa0a00a0aaa0a000000"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- **botToken**: Put your bot token that you created at [@BotFather](https://t.me/botfather), as the example above.
|
- **botToken**: Put your bot token that you created at [@BotFather](https://t.me/botfather), as the example above.
|
||||||
- **admins**: Put the ID of the people responsible for managing the bot (as the example above). They can use some administrative + exclusive commands on any group.
|
- **admins**: Put the ID of the people responsible for managing the bot (as the example above). They can use some administrative + exclusive commands on any group.
|
||||||
- **lastKey**: Last.fm API key, for use on lastfm.js functions, like see who is listening to what song.
|
- **lastKey**: Last.fm API key, for use on `lastfm.js` functions, like see who is listening to what song and etc.
|
||||||
- **lastSecret**: Last.fm API secret (optional), which has the "same" purpose as the API key above.
|
- **lastSecret**: Last.fm API secret (optional), which has the "same" purpose as the API key above.
|
||||||
|
- **weatherKey**: Weather.com API key, used for the `/weather` command
|
||||||
|
|
||||||
After editing the file, save all changes and run the bot with ``npm start``.
|
After editing the file, save all changes and run the bot with ``npm start``.
|
||||||
- To deal with dependencies, just run ``npm install .`` or ``npm i .`` at any moment to install any of them.
|
- To deal with dependencies, just run ``npm install .`` or ``npm i .`` at any moment to install any of them.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user