@@ -15,10 +15,8 @@ exports.run = async (client, msg, [args]) => {
15
15
if ( webhookArray ) webhookName = webhookArray . find ( ( arg ) => arg . match ( client . re . nameRe ) )
16
16
if ( webhookName ) webhookName = webhookName . replace ( client . translator . translate ( 'name' ) , '' )
17
17
if ( client . config . discord . admins . includes ( msg . author . id ) && msg . channel . type === 'text' ) target = { id : msg . channel . id , name : msg . channel . name , webhook : false }
18
- if ( client . config . discord . admins . includes ( msg . author . id ) && webhookName ) {
19
- target = { name : webhookName . replace ( client . translator . translate ( 'name' ) , '' ) , webhook : true }
20
- msg . content = msg . content . replace ( client . hookRegex , '' )
21
- }
18
+ if ( client . config . discord . admins . includes ( msg . author . id ) && webhookName ) target = { name : webhookName . replace ( client . translator . translate ( 'name' ) , '' ) , webhook : true }
19
+
22
20
const isRegistered = target . webhook
23
21
? await client . query . selectOneQuery ( 'humans' , { name : target . name , type : 'webhook' } )
24
22
: await client . query . countQuery ( 'humans' , { id : target . id } )
@@ -41,13 +39,12 @@ exports.run = async (client, msg, [args]) => {
41
39
const quests = await client . query . selectAllQuery ( 'quest' , { id : target . id } )
42
40
const invasions = await client . query . selectAllQuery ( 'invasion' , { id : target . id } )
43
41
const maplink = `https://www.google.com/maps/search/?api=1&query=${ human . latitude } ,${ human . longitude } `
44
- let locationText = 'Y '
42
+ let locationText = ''
45
43
if ( human . latitude !== 0 && human . longitude !== 0 ) {
46
44
locationText = `Your location is currently set to ${ maplink } \nand y`
47
45
}
48
- msg . reply ( `👋\n${ locationText } ou are currently set to receive alarms in ${ human . area } ` ) . catch ( ( O_o ) => {
49
- client . log . error ( O_o . message )
50
- } )
46
+ await msg . reply ( `👋\n${ locationText } You are currently set to receive alarms in ${ human . area } ` )
47
+
51
48
let message = ''
52
49
if ( monsters . length ) {
53
50
message = message . concat ( '\n\nYou\'re tracking the following monsters:\n' )
0 commit comments