-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make support.element case insensitive
- Loading branch information
Showing
10 changed files
with
121 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
export default { | ||
"th": function(reply, code) { | ||
if (!this.server.running) { | ||
return reply.text("Autopilot is not running"); | ||
} | ||
if (this.config.Server.Scenario !== "Leech") { | ||
return reply.text("Autopilot is not running in Leech mode"); | ||
} | ||
this.server.extensions.raidQueue.push(code); | ||
return reply.text("Raid added to the queue"); | ||
}, | ||
"subscribe": function(reply, arg, evt) { | ||
if (!evt.source.userId) return; | ||
const userId = evt.source.userId; | ||
if (this.subscribers.has(userId)) { | ||
return reply.text("You're already subscribed to the bot."); | ||
} | ||
this.subscribers.add(userId); | ||
return reply.text("You're now subscribed to the bot."); | ||
}, | ||
"unsubscribe": function(reply, arg, evt) { | ||
if (!evt.source.userId) return; | ||
const userId = evt.source.userId; | ||
if (!this.subscribers.has(userId)) { | ||
return reply.text("You're not subscribed to the bot."); | ||
} | ||
this.subscribers.delete(userId); | ||
return reply.text("You're now unsubscribed from the bot."); | ||
}, | ||
"user-id": function(reply, arg, evt) { | ||
if (!evt.source.userId) return; | ||
return reply.text("Your user ID is " + evt.source.userId); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters