/
constants.go
68 lines (61 loc) · 2.04 KB
/
constants.go
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
62
63
64
65
66
67
68
// sibylSystemGo library Project
// Copyright (C) 2021-2022 ALiwoto
// This file is subject to the terms and conditions defined in
// file 'LICENSE', which is part of the source code.
package sibylSystem
const (
DefaultUrl = "https://psychopass.kaizoku.cyou/"
)
const (
// NormalUser Can read from the Sibyl System.
NormalUser UserPermission = iota
// Enforcer Can only report to the Sibyl System.
Enforcer
// Inspector Can read/write directly to the Sibyl System.
Inspector
// Owner Can create/revoke tokens.
Owner
)
const (
DefaultDispatcherTimeout = 30
)
const (
UpdateTypeScanRequestApproved = "scan_request_approved"
UpdateTypeScanRequestRejected = "scan_request_rejected"
)
const (
// EntityTypeUser represents a normal user while being scanned.
// please notice that "being normal", doesn't necessarily mean
// not being criminal.
EntityTypeUser EntityType = iota
// EntityTypeBot represents an account which is considered as a bot.
// as API has no idea what is a "bot account", the value "is_bot"
// should be set by the enforcer/inspector while sending requests
// to sibyl.
EntityTypeBot
// EntityTypeAdmin represents an account which is considered as an admin
// in a psychohazard event. it's completely up to the person who is scanning
// to decide what is an admin account.
EntityTypeAdmin
// EntityTypeOwner represents an account which is considered as an owner
// in a psychohazard event. it's completely up to the person who is scanning
// to decide what is an owner account.
EntityTypeOwner
// EntityTypeChannel represents an entity which is considered as a channel.
EntityTypeChannel
// EntityTypeGroup represents an entity which is considered as a group.
EntityTypeGroup
)
// flags constants
const (
BanFlagTrolling = "TROLLING"
BanFlagSpam = "SPAM"
BanFlagEvade = "EVADE"
BanFlagCustom = "CUSTOM"
BanFlagPsychoHazard = "PSYCHOHAZARD"
BanFlagMalImp = "MALIMP"
BanFlagNSFW = "NSFW"
BanFlagRaid = "RAID"
BanFlagSpamBot = "SPAMBOT"
BanFlagMassAdd = "MASSADD"
)