mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Change how hang up is shown
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "119.10.2",
|
"version": "119.10.3",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -36,8 +36,10 @@ module.exports = class PhoneCall {
|
|||||||
this.active = true;
|
this.active = true;
|
||||||
this.setTimeout();
|
this.setTimeout();
|
||||||
if (this.ownerOrigin) return this;
|
if (this.ownerOrigin) return this;
|
||||||
await this.origin.send(`☎️ **${this.recipient.guild.name}** picked up! Type \`hang up\` to hang up.`);
|
const inGuild = msg.guild ? undefined : null;
|
||||||
await this.recipient.send(`☎️ Accepted call from **${this.origin.guild.name}**. Type \`hang up\` to hang up.`);
|
const cmd = msg.anyUsage('hang-up', inGuild, inGuild);
|
||||||
|
await this.origin.send(`☎️ **${this.recipient.guild.name}** picked up! Use ${cmd} hang up.`);
|
||||||
|
await this.recipient.send(`☎️ Accepted call from **${this.origin.guild.name}**. Use ${cmd} to hang up.`);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user