diff --git a/src/commands/securesign_build.ts b/src/commands/securesign_build.ts index 83d36d6..fb28b3e 100644 --- a/src/commands/securesign_build.ts +++ b/src/commands/securesign_build.ts @@ -15,11 +15,11 @@ export default class SecureSign_Build extends Command { try { const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Loading build information...***`); - const build = await this.client.util.exec("sudo -H -u root bash -c 'securesign build'"); - const info = build.replace(/\n/g, '\n**').replace(/:/g, ':**').split('\n'); + const build = await this.client.util.exec("sudo -H -u root bash -c 'securesign-canary build'"); + const info = build.replace(/^\s+|\s+$/g, '').replace(/\n/g, '\n**').replace(/: /g, ':** ').split('\n'); const title = info.shift(); const description = info.join('\n'); - const content = null; + const content = ''; const embed = new RichEmbed(); embed.setTitle(title); diff --git a/src/commands/securesign_init.ts b/src/commands/securesign_init.ts index 8ade7de..0b575ce 100644 --- a/src/commands/securesign_init.ts +++ b/src/commands/securesign_init.ts @@ -45,7 +45,7 @@ export default class SecureSign_Init extends Command { await Promise.all(tasks); return msg.edit(`${this.client.stores.emojis.error} ***Credentials incorrect***`); } - const init = await this.client.util.exec(`sudo -H -u ${account.username} bash -c 'securesign init -a ${args[0]}'`); + const init = await this.client.util.exec(`sudo -H -u ${account.username} bash -c 'securesign-canary init -a ${args[0]}'`); if (!init.endsWith('Initialization sequence completed.')) throw new Error('Account initialization did not complete successfully'); return msg.edit(`${this.client.stores.emojis.success} ***Account initialized***`); } catch (error) {