Browse Source

typp

push-params
Evan Feenstra 4 years ago
parent
commit
26f8c76b10
  1. 2
      api/bots/index.ts
  2. 2
      dist/api/bots/index.js
  3. 2
      dist/api/bots/index.js.map

2
api/bots/index.ts

@ -36,7 +36,7 @@ function builtinBotEmit(msg:Msg){
roles:[]
}
}
if(msg.sender.role===constants.chat_role.owner) {
if(msg.sender.role===constants.chat_roles.owner) {
if(m.member) m.member.roles=[{
name:'Admin'
}]

2
dist/api/bots/index.js

@ -46,7 +46,7 @@ function builtinBotEmit(msg) {
roles: []
}
};
if (msg.sender.role === constants.chat_role.owner) {
if (msg.sender.role === constants.chat_roles.owner) {
if (m.member)
m.member.roles = [{
name: 'Admin'

2
dist/api/bots/index.js.map

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../api/bots/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AACrC,wCAAuC;AAEvC,6BAA4B;AAC5B,sCAAkC;AAElC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,6BAA6B,CAAC,CAAC,CAAA;AAE9E,SAAe,IAAI;;QACf,SAAS,CAAC,IAAI,EAAE,CAAA;QAEhB,MAAM,WAAW,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAC,KAAK,EAAC;gBACpD,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,OAAO;aACvC,EAAC,CAAC,CAAA;QACH,IAAG,CAAC,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC;YAAE,OAAM;QAE/C,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA,EAAE;YACnB,IAAG,CAAC,CAAC,SAAS,KAAG,UAAU;gBAAE,UAAU,CAAC,IAAI,EAAE,CAAA;QAClD,CAAC,CAAC,CAAA;IACN,CAAC;CAAA;AAyBO,oBAAI;AAvBZ,SAAS,cAAc,CAAC,GAAO;IAC3B,MA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