summaryrefslogtreecommitdiff
path: root/views/register.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-09 18:02:15 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-09 18:03:06 +0200
commit0ee8e0e5239e3f76911834da54d2c72a4a149804 (patch)
treefca810d542ffad451699379a8dc61067c7ea632b /views/register.js
parent94adb2f9f182e50f6d60aadc70bb8bf8f74f2371 (diff)
downloaddiscordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.tar.gz
discordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.zip
error handling, migration to template
Diffstat (limited to 'views/register.js')
-rw-r--r--views/register.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/views/register.js b/views/register.js
index 9943299..1df3bf1 100644
--- a/views/register.js
+++ b/views/register.js
@@ -19,7 +19,7 @@ module.exports = class extends View {
}
async text() {
- return `You are now registered at VainSocial, ${this.msg.author.mention}.`;
+ return `You are now registered at VainSocial, @${this.msg.author.tag}.`;
}
async help() {
return `*${emoji.symbols.repeat} or ${util.usg(this.msg, "v")} to view your profile, ${util.usg(this.msg, "vgcreate")} to create a Guild*`
@@ -33,10 +33,8 @@ module.exports = class extends View {
return reactions;
}
async respond() {
- console.log("************************");
- console.log(await this.text());
this.response = await util.respond(this.msg,
- await this.text(), this.response);
+ await this.text() + "\n" + await this.help(), this.response);
if (!this.hasButtons) {
await util.reactionButtons(this.response,
await this.buttons());