changes to wryna commands
This commit is contained in:
parent
34100aac98
commit
8c97e6c0dc
1 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,7 @@ export class UserCommand extends Command {
|
||||||
|
|
||||||
// Message command
|
// Message command
|
||||||
public async messageRun(message: Message, args: Args) {
|
public async messageRun(message: Message, args: Args) {
|
||||||
return this.sendPing(message, args.getOption('nickname') || 'NOTHING');
|
return this.sendPing(message, args.getOption('nickname') || message.content.split('!wryna ')[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chat Input (slash) command
|
// Chat Input (slash) command
|
||||||
|
@ -32,9 +32,11 @@ export class UserCommand extends Command {
|
||||||
nickname: string
|
nickname: string
|
||||||
) {
|
) {
|
||||||
interactionOrMessage instanceof Message
|
interactionOrMessage instanceof Message
|
||||||
? await interactionOrMessage.channel.send({ content: `${nickname} was ${interactionOrMessage.author.tag}'s nickname in highschool!` })
|
? await interactionOrMessage.channel.send({
|
||||||
|
content: `${nickname} was ${interactionOrMessage.author.username}'s nickname in highschool!`
|
||||||
|
})
|
||||||
: await interactionOrMessage.reply({
|
: await interactionOrMessage.reply({
|
||||||
content: `${nickname} was ${interactionOrMessage.user.tag}'s nickname in highschool!`,
|
content: `${nickname} was ${interactionOrMessage.user.username}'s nickname in highschool!`,
|
||||||
fetchReply: true
|
fetchReply: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue