|
@@ -69,9 +69,9 @@ function isAuthorised(member) {
|
|
|
}
|
|
|
|
|
|
const commands = {
|
|
|
- "make guide": (msg, s) => {
|
|
|
+ "make guide": msg => {
|
|
|
if (!isAuthorised(msg.member)) return;
|
|
|
- let content = s.substring("make guide ".length);
|
|
|
+ let content = msg.content.substring(msg.content.indexOf("make guide") + "make guide ".length);
|
|
|
let guideName = content.substring(0, content.indexOf("\n")).trim();
|
|
|
let guideContent = content.substring(content.indexOf("\n")).trim();
|
|
|
|