MOTD done right?
This commit is contained in:
		
							parent
							
								
									e16894a831
								
							
						
					
					
						commit
						96d86d0f88
					
				
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							|  | @ -103,6 +103,8 @@ client.on('interactionCreate', async interaction => { | |||
| 				doAddressHistory(interaction.user.id, address); | ||||
| 				findMc(address, 5000).then((data) => { | ||||
| 					data.description = filterMOTD(data.description); | ||||
| 					motd = `\`${data.description.split("\n")[0]}\`` | ||||
| 					if (data.description?.split("\n")[1]) motd += "\n" + `\`${data.description.split("\n")[1]}\`` | ||||
| 					msgData = { | ||||
| 						embeds: [{ | ||||
| 							title: `Server Info for ${address}`, | ||||
|  | @ -120,7 +122,7 @@ client.on('interactionCreate', async interaction => { | |||
| 								}, | ||||
| 								{ | ||||
| 									name: "MOTD", | ||||
| 									value: `\`${`\`${data.description?.split("\n")[0]}\`` || ""}\`\n${`\`${data.description?.split("\n")[1]}\`` || ""}` | ||||
| 									value: motd | ||||
| 								}, | ||||
| 								data.players.sample?.length > 0 ? { | ||||
| 									name: "Players", | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue