Skip to content

Commit

Permalink
Add missing sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
michelkaporin committed Nov 6, 2020
1 parent da64323 commit e48563c
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 331 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ dist
.pnp.*

# Assets
assets/
/assets

# Mac OS specifics
**/.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Consult _sample_ folder for bot configuration example.
TELEGRAM_BOT_TOKEN=your_telegram_token
```
2. Add _.config_ file to the _assets_ folder with Telegram list of usernames for admins and botChatId for ID of bot's own chat. This will be used for saving voice messages upload from your bot's machine.
3. Add _telegram_voice_map.json_ and _local_voice_map.json_ to the _assets_ folder. Populate _local_voice_map.json_, if you have any voices to be uploaded.
3. Add _telegram_voice_map.json_ and _local_voice_map.json_ to the _assets_ folder. Populate _local_voice_map.json_, if you have any voices to be uploaded (add .OGG files under _assets/voices_ folder).

## Start Bot
```
Expand Down
7 changes: 7 additions & 0 deletions sample/assets/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"botChatId": 459393177,
"admins": [
"username1",
"username2"
]
}
11 changes: 11 additions & 0 deletions sample/assets/local_voice_map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"voices": [{
"id": "voice1",
"title": "Hi!",
"path": "./assets/voices/hi.ogg"
},{
"id": "voice2",
"title": "How are you?",
"path": "./assets/voices/how_are_you.ogg"
}]
}
4 changes: 4 additions & 0 deletions sample/assets/telegram_voice_map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"voices": [
]
}
16 changes: 0 additions & 16 deletions sample/src/app.ts

This file was deleted.

175 changes: 0 additions & 175 deletions sample/src/bot.ts

This file was deleted.

18 changes: 0 additions & 18 deletions sample/src/config.ts

This file was deleted.

26 changes: 0 additions & 26 deletions sample/src/telegram-voices.ts

This file was deleted.

26 changes: 0 additions & 26 deletions sample/src/types.ts

This file was deleted.

68 changes: 0 additions & 68 deletions sample/src/voices-loader.ts

This file was deleted.

0 comments on commit e48563c

Please sign in to comment.