@@ -31,6 +31,149 @@ module.exports = (client) => {
31
31
name : 'Incorrect Channel' ,
32
32
}
33
33
}
34
+ } ,
35
+ location : {
36
+ humans : [ {
37
+ id : '123456789' ,
38
+ type : 'webhook' ,
39
+ name : 'registeredwebhook' ,
40
+ enabled : 1 ,
41
+ area : '[]' ,
42
+ latitude : 0 ,
43
+ longitude : 0 ,
44
+ fails : 0 ,
45
+ last_checked : new Date ( ) . toUTCString ( ) ,
46
+ } ,
47
+ {
48
+ id : '222' ,
49
+ type : 'discord:user' ,
50
+ name : 'happyAuthorsUsername' ,
51
+ enabled : 1 ,
52
+ area : '[]' ,
53
+ latitude : 0 ,
54
+ longitude : 0 ,
55
+ fails : 0 ,
56
+ last_checked : new Date ( ) . toUTCString ( ) ,
57
+ } ,
58
+ {
59
+ id : '333' ,
60
+ type : 'discord:channel' ,
61
+ name : 'testingChannel' ,
62
+ enabled : 1 ,
63
+ area : '[]' ,
64
+ latitude : 0 ,
65
+ longitude : 0 ,
66
+ fails : 0 ,
67
+ last_checked : new Date ( ) . toUTCString ( ) ,
68
+ } ] ,
69
+ happy : {
70
+ reply : ( msg ) => client . setMessage ( msg ) ,
71
+ react : ( e ) => client . setReact ( e ) ,
72
+ author : {
73
+ tag : 'registeredUserInTallinn' ,
74
+ username : 'happyAuthorsUsername' ,
75
+ id : '222' ,
76
+ send : ( content ) => {
77
+ client . setMessage ( content )
78
+ } ,
79
+ } ,
80
+ channel : {
81
+ id : 'UsersDMChannel' ,
82
+ name : 'channelName' ,
83
+ type : 'dm' ,
84
+ } ,
85
+ content : '.location tallinn' ,
86
+ } ,
87
+ happyAdmin : {
88
+ reply : ( msg ) => client . setMessage ( msg ) ,
89
+ react : ( e ) => client . setReact ( e ) ,
90
+ author : {
91
+ tag : 'AdminRegistersChannelLocation' ,
92
+ username : 'happyAuthorsUsername' ,
93
+ id : '222742859059560458' ,
94
+ send : ( content ) => {
95
+ client . setMessage ( content )
96
+ } ,
97
+ } ,
98
+ channel : {
99
+ id : '333' ,
100
+ name : 'adminSetLocationInThisChannel' ,
101
+ type : 'text' ,
102
+ } ,
103
+ content : '.location tallinn' ,
104
+ } ,
105
+ sadAdmin : {
106
+ reply : ( msg ) => client . setMessage ( msg ) ,
107
+ react : ( e ) => client . setReact ( e ) ,
108
+ author : {
109
+ tag : 'AdminRegistersChannelLocation' ,
110
+ username : 'happyAuthorsUsername' ,
111
+ id : '222742859059560458' ,
112
+ send : ( content ) => {
113
+ client . setMessage ( content )
114
+ } ,
115
+ } ,
116
+ channel : {
117
+ id : '3333' ,
118
+ name : 'channelUnregistered' ,
119
+ type : 'text' ,
120
+ } ,
121
+ content : '.location tallinn' ,
122
+ } ,
123
+ happyAdminWebhook : {
124
+ reply : ( msg ) => client . setMessage ( msg ) ,
125
+ react : ( e ) => client . setReact ( e ) ,
126
+ author : {
127
+ tag : 'registeredUserInTallinn' ,
128
+ username : 'happyAuthorsUsername' ,
129
+ id : '222742859059560458' ,
130
+ send : ( content ) => {
131
+ client . setMessage ( content )
132
+ } ,
133
+ } ,
134
+ channel : {
135
+ id : '533927791096233984' ,
136
+ name : 'channelName' ,
137
+ type : 'dm' ,
138
+ } ,
139
+ content : '.location nameregisteredwebhook tallinn' ,
140
+ } ,
141
+ sadAdminWebhook : {
142
+ reply : ( msg ) => client . setMessage ( msg ) ,
143
+ react : ( e ) => client . setReact ( e ) ,
144
+ author : {
145
+ tag : 'registeredUserInTallinn' ,
146
+ username : 'happyAuthorsUsername' ,
147
+ id : '222742859059560458' ,
148
+ send : ( content ) => {
149
+ client . setMessage ( content )
150
+ } ,
151
+ } ,
152
+ channel : {
153
+ id : '533927791096233984' ,
154
+ name : 'channelName' ,
155
+ type : 'dm' ,
156
+ } ,
157
+ content : '.location nameregisteredwebhookthatdoesntexist tallinn' ,
158
+ } ,
159
+ sad : {
160
+ reply : ( msg ) => client . setMessage ( msg ) ,
161
+ react : ( e ) => client . setReact ( e ) ,
162
+ author : {
163
+ tag : 'registeredUserInTallinn' ,
164
+ username : 'happyAuthorsUsername' ,
165
+ id : '15867' ,
166
+ send : ( content ) => {
167
+ client . setMessage ( content )
168
+ } ,
169
+ } ,
170
+ channel : {
171
+ id : '533927791096233984' ,
172
+ name : 'channelName' ,
173
+ type : 'dm' ,
174
+ } ,
175
+ content : '.location tallinn' ,
176
+ } ,
34
177
}
35
178
}
36
179
}
0 commit comments