Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nodexninja committed Oct 27, 2021
0 parents commit 0c955e9
Show file tree
Hide file tree
Showing 6 changed files with 1,080 additions and 0 deletions.
7 changes: 7 additions & 0 deletions direct-msg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = (client, trigger, reply) => {
client.on("message", (msg) => {
if (msg.channel.type === "dm" && msg.content.toLowerCase() === trigger.toLowerCase()) {
msg.author.send(reply)
}
})
}
Loading

0 comments on commit 0c955e9

Please sign in to comment.