Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 357 Bytes

admin.md

File metadata and controls

18 lines (12 loc) · 357 Bytes

Admin

This module provide you simple helper for checking if some person is admin of this bot. All admins are hardcoded during bot initialization.

Usage

In initialization method of your bot register all admins:

admins.add("steve")
admins.add("prettynatty")

After this you can check if user is admin:

isAdmin(<user_id>)