mirror of
				https://gitlab.com/ceda_ei/Quadnite-Bot
				synced 2025-10-31 01:00:05 +01:00 
			
		
		
		
	Use all args of /insult and /kys as name
This commit is contained in:
		| @@ -10,10 +10,10 @@ module.exports = (random, kys, default_text, bot_text, excluded_names) => (ctx) | ||||
|  | ||||
| 	} else { | ||||
|  | ||||
| 		const text_array = ctx.message.text.split(" "); | ||||
| 		const text_array = ctx.message.text.split(" ").trim(); | ||||
| 		if (text_array.length > 1) { | ||||
|  | ||||
| 			const name = text_array[1]; | ||||
| 			const name = text_array.slice(1).reduce((i, j) => i + " " + j); | ||||
| 			if (excluded_names.includes(name) | ||||
| 				|| excluded_names.includes("@" + name)) | ||||
| 				return bot_text; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user