Skip to content

imxieyi/sticker_time_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sticker Time Bot

Telegram Link: http://t.me/sticker_time_bot

Introduction

This is a Telegram bot sending a sticker indicating time every hour. You can start or stop any time using commands.

Commands

Start sending stickers: /start

Stop sending stickers: /stop

Set timezone: /timezone Asia/Shanghai

List of timezones in tz database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Enable/Disable auto deleting messages: /autodelete [on|off]

Set sleep time: /sleeptime [0-23]

Set wake time: /waketime [0-23]

Delete sleep and wake time: /nosleep

Add hour to alarm list: /addhour [0-23]

Delete hour from alarm list: /delhour [0-23]

List hours in alarm list: /listhours

Clear alarm list: /clearhours

Environment

  • Node.js 8.0+

Installation

npm install

Configuration

Create a file config.json:

{
    "tg_bot_token": "Your Telegram bot token here",
    "log_file": "Log file"
}

Start

npm start

About

Telegram bot to send sticker telling time every hour

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published