Skip to content
/ StockBot Public

A Telegram bot to manage stocks, using Google Drive Sheets.

License

Notifications You must be signed in to change notification settings

ex0ns/StockBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StockBot

StockBot is a Telegram bot, made in scala using the telegrambot4s library. It aims to help managing home stocks and make the logistics/communication easier.

Installation && build

You obviously need Scala and SBT to make it run.

Then you'll need a Google Drive key as well as one for the Telegram Bot.

  • Follow this to get the needed P12 key
  • And this to obtains the Telegram key for your brand new bot.

Simply create a 'keys' folder at the root and add the keys (see Configuration).

Configuration

The configuration is done through the application.conf file. It's composed of two parts, the first one drive-client which is the Google Drive related configuration and the telegram-client file which is the telegram one.

The base configuration:

drive-client {
  email="[email protected]" // Email of the Drive Service Account 
  key-path="keys/drive.p12" // Path to the drive key
  filename="stock" // The sheet's name
  start-row=2 // The row from which there are items
  cols=[1,3] // The columns that contains items
}

telegram-client {
  key-path="./keys/telegram.key" // Path to the telegram key
}

You are good to go ! The last step is to share the stock sheet you want the bot to manage to the Service Account email so the bot can access it.

Contribute

Feel free to contribute, report any bug or submit ideas to improve the bot !

License

See License !

About

A Telegram bot to manage stocks, using Google Drive Sheets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages