Skip to content

GHBot documentation

How it works

Begin point is from index.js which loads plugins, database and the acutal bot is then started by main.js

Other than starting the bot main.js emits on GHBot some events with many LibreGroupHelp related integrated data ready to use, simplyfing the code

Database is managed by database.js, usually on the db variable, main methods are found on db.chats and db.users to manage data about them

JSDocs Objects documentation are on GHbot.js, it may also implement small fixes always to make an easyer interface

TGbot variable will give you direct access to the telegram-bot-api, when possible you should use GHbot events and methods and if does not exhist the one needed create that
Additionally on TGbot.me is avaiable await TGbot.getMe() result

Any LibreGroupHelp code should keep in mind that user should be able to delete his data in any moment, that's for respecting at best our privacy philosophy

Github good first issues