Note: most of this document is a draft, and things are subject to change.
- POWERUNIT_USER_DIR
- POWERUNIT_VIEWPORT
everything here is even more of a draft than what's above; this is in fact more of my personal notes than a draft
cli: powerunit <actual cmd>
- acts as a 'wrapper': sets things up, runs the unit test command, tear things down, exit
keep in mind pupetter will be up for the whole time the lib can be consumed, otherwise someone is fucking things up and deserved to be spanked
lib:
- get puppeteer's page object:
import { discord } from '@powercord/powerunit'
- get data controller:
import { controller } from '@powercord/powerunit'
data controller:
controller.reset()
: resets everything to default (absolutely no data, logged in)controller.disconnect()
: logs current user outcontroller.connect()
: logs incontroller.user
current usercontroller.users
instance-wide userscontroller.relations
instance-wide relationships (friends & blocks)controller.presences
instance-wide presencescontroller.guilds
instance-wide guildscontroller.channels
instance-wide channelscontroller.messages
instance-wide messagescontroller.dms
dms with other users