mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
abort emojimix early
This commit is contained in:
parent
00725e8efb
commit
d8c86959f5
2 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,8 @@ module.exports = {
|
||||||
// Emoji Mixing
|
// Emoji Mixing
|
||||||
if(emoji.length >= 2){
|
if(emoji.length >= 2){
|
||||||
ingest("emoji_emojikitchen", "slash_command_ran");
|
ingest("emoji_emojikitchen", "slash_command_ran");
|
||||||
|
if(emoji.length >= 3) return editOrReply(context, createEmbed("warning", context, "You cannot mix more than two emoji."));
|
||||||
|
|
||||||
try{
|
try{
|
||||||
let em = await emojiKitchen(emoji)
|
let em = await emojiKitchen(emoji)
|
||||||
if(!em.body.results[0]){
|
if(!em.body.results[0]){
|
||||||
|
|
|
@ -110,6 +110,8 @@ module.exports = {
|
||||||
if(emoji.length >= 2){
|
if(emoji.length >= 2){
|
||||||
try{
|
try{
|
||||||
ingest("emoji_emojikitchen", "command_ran");
|
ingest("emoji_emojikitchen", "command_ran");
|
||||||
|
if(emoji.length >= 3) return editOrReply(context, createEmbed("warning", context, "You cannot mix more than two emoji."));
|
||||||
|
|
||||||
let em = await emojiKitchen(emoji)
|
let em = await emojiKitchen(emoji)
|
||||||
if(!em.body.results[0]){
|
if(!em.body.results[0]){
|
||||||
for(const em of emoji){
|
for(const em of emoji){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue