instant-pillars

command module
v0.0.0-...-807ce15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 15 Imported by: 0

README

Instant Pillar

This is a Telegram bot sending random photos to a user. Photos are being taken from Pinterest boards.

Requirements

  • Go language

  • PostgreSQL

Dependencies

Settings

Use config.json to fill settings:

  • Language: preffered language. English and Russian languages included

  • TelegramBotToken: get this token from @BotFather bot in Telegram

  • PinterestToken: get this token from Pinterest application. Check out their getting started guide. Note that your application cannot be submitted, so you will have limitations. You can upload to the bot up to 500 photos per hour.

  • BotAdmin: your Telegram username. This user can upload new photos to the bot

  • DBUser, DBPass, DBName: connect parameters to PostgreSQL

Working with bot

Administrator can use /load command. The bot will wait for a correct Pinterest board link like https://pinterest.com/user/board/ and fetch photos from this board. If you exceed you Pinterest limit job will continue in the background. Also administrator can use /continue command to continue previous load session being stopped accidentally.

Users can use commands /start or /moar to get new random photo.

Check out working instance @instantPillars with photos of cute caterpillars.

License

MIT © 2019 a-frony

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL