fixed ingoring locale choice in the first message
This commit is contained in:
		@@ -78,6 +78,7 @@ client.on("room.message", async (roomId, event) => {
 | 
				
			|||||||
                if (a[0] !== "!start") return;
 | 
					                if (a[0] !== "!start") return;
 | 
				
			||||||
                if (a[1] !== "ru" && a[1] !== "en") return;
 | 
					                if (a[1] !== "ru" && a[1] !== "en") return;
 | 
				
			||||||
                await setUserLanguage(roomId, a[1]);
 | 
					                await setUserLanguage(roomId, a[1]);
 | 
				
			||||||
 | 
					                i18n.locale = a[1]
 | 
				
			||||||
                await setUserState(roomId, "country");
 | 
					                await setUserState(roomId, "country");
 | 
				
			||||||
                await client.sendText(roomId, i18n.t(["setup", "country"]));
 | 
					                await client.sendText(roomId, i18n.t(["setup", "country"]));
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user