Admin call system

This commit is contained in:
Dragon Fire
2020-05-13 18:35:36 -04:00
parent 40a28a46f0
commit 577a665dc4
7 changed files with 70 additions and 12 deletions
+2
View File
@@ -34,6 +34,7 @@ client.registry
['edit-text', 'Text Manipulation'],
['edit-number', 'Number Manipulation'],
['voice', 'Voice-Based'],
['phone', 'Phone'],
['other', 'Other'],
['roleplay', 'Roleplay'],
['readme', 'README Generators']
@@ -83,6 +84,7 @@ client.on('message', async msg => {
if (!origin && !recipient) return;
const call = origin || recipient;
if (!call.active) return;
if (call.ownerOrigin && msg.guild.id === origin.guild.id && !client.isOwner(msg.author)) return;
try {
await call.send(origin ? call.recipient : call.origin, msg, hasText, hasImage, hasEmbed);
} catch {