-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Barış Demirci
authored and
repl.it user
committed
Jul 5, 2020
1 parent
6e0f19b
commit b372185
Showing
8 changed files
with
76 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const regEx = /[A-Za-z0-9_]+:[0-9]+/; | ||
|
||
module.exports = (emoji) => { | ||
let cleaned = regEx.exec(emoji); | ||
if (cleaned) return cleaned[0]; | ||
return emoji; | ||
let cleaned = regEx.exec(emoji); | ||
if (cleaned) return cleaned[0]; | ||
return emoji; | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = (emoji) => { | ||
if (emoji.id) return `${emoji.name}:${emoji.id}`; | ||
else return emoji.name; | ||
if (emoji.id) return `${emoji.name}:${emoji.id}`; | ||
else return emoji.name; | ||
}; |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
const { Client } = require("discord.js"); | ||
|
||
module.exports = (self) => { | ||
module.exports = async (self) => { | ||
console.info("[ReactionRole] ReInitializing System!"); | ||
self.client.destroy(); | ||
self.client = new Client(); | ||
require("./init")(self); | ||
await require("./init")(self); | ||
} |
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