mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-19 09:13:58 +00:00
8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
import { on, withContext } from '$utils/api/events'
|
|
|
|
withContext(on, 'ready', ({ api, logger }) => {
|
|
// Reset disconnect count, so it doesn't meet the threshold for an accidental disconnect
|
|
api.disconnectCount = 0
|
|
logger.info('Connected to the bot API')
|
|
})
|