Skip to content

Latest commit

 

History

History
executable file
·
30 lines (22 loc) · 760 Bytes

README.md

File metadata and controls

executable file
·
30 lines (22 loc) · 760 Bytes

xkcd Telegram bot

Thanks to Randall Munroe for all the fun

All contents come from xkcd.com

Chat with @xkcd_unofficial_bot

Commands

  • /latest
  • /random
  • /getxkcd N (specify a number, e.g. /getxkcd 30)
  • /now

Configuration

The configuration file must be placed in config/ directory and must be named config.json. Look at the config/sample-config.json to know what you should and shouldn't config!

By the way, here there's a list:

  • Bot token
  • Host server and Web Hook
  • SSL certificate and key directory
  • Latest comic polling rate

Available debug envvars

  • 'debug'
  • 'cmd'
  • 'request'

Debug usage:

    $ DEBUG='debug|cmd|request' node index.js