-
Notifications
You must be signed in to change notification settings - Fork 8
/
debug.js
61 lines (47 loc) · 1.91 KB
/
debug.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Local debug module
const debug = require('debug')('rsvpbot:debug.js')
const API = require('./api')
async function main(tgid) {
debug('checking poc identity...')
let info = await API.checkpoc(tgid)
debug(info)
debug('\n')
debug('checking ap logging status...')
await API.checkapstatus(info.faction, info.location, tgid)
debug('completed')
debug('\n')
debug('importing rsvp list...')
let list = ['sampleagent', 'sampleplayer']
let recinfo = await API.importrsvp(info.faction, info.location, list)
debug(recinfo)
debug('fetching agents first-letter list with checkin...')
let firstletterdict = await API.checkupagents(info.faction, info.location, null, 'in', tgid)
debug(firstletterdict)
debug('\n')
debug('fetching K-letter-starting-id agents with checkin...')
let kagentslist = await API.checkupagents(info.faction, info.location, 'K', 'in', tgid)
debug(kagentslist)
debug('\n')
debug('set agent into ap-logging status')
await API.checkstatus(info.faction, info.location, 'sampleagent', 'in', tgid)
debug('\n')
debug('set agent "sampleagent" ap and level with checkin')
await API.logdata(info.faction, info.location, '16', 40000000, 2500, tgid)
debug('\n')
debug('fetching agents first-letter list with checkout...')
firstletterdict = await API.checkupagents(info.faction, info.location, null, 'out', tgid)
debug(firstletterdict)
debug('\n')
debug('fetching K-letter-starting-id agents with checkout...')
kagentslist = await API.checkupagents(info.faction, info.location, 'K', 'out', tgid)
debug(kagentslist)
debug('\n')
debug('set agent "sampleagent" into ap-logging status')
await API.checkstatus(info.faction, info.location, 'sampleagent', 'out', tgid)
debug('\n')
debug('set agent "sampleagent" ap and level with checkout')
await API.logdata(info.faction, info.location, '16', 50000000, 2600, tgid)
debug('\n')
debug('debug test done.')
}
main(54785179)