Quadnite-Bot/commands/feedback.js

16 lines
283 B
JavaScript
Raw Normal View History

2019-02-12 08:40:01 +01:00
module.exports = (feedback_id) => (ctx) => {
const message = ctx.message.text.replace(/^[^ ]+/, "");
if (message) {
ctx.forwardMessage(feedback_id);
return "Thanks for the feedback";
} else {
return "To send feedback type in /feedback followed by the feedback";
}
};