format fix #380 , now deleting pickup message when random flower spawns after 5 second
This commit is contained in:
		| @@ -85,7 +85,7 @@ namespace NadekoBot.Modules.Administration.Commands | ||||
|                     int i = 1; | ||||
|                     foreach (var reaction in items) | ||||
|                     { | ||||
|                         message.AppendLine($"[{i++}] " + Format.Code(reaction)); | ||||
|                         message.AppendLine($"[{i++}] " + Format.Code(Format.Escape(reaction))); | ||||
|                     } | ||||
|                     await e.Channel.SendMessage(message.ToString()); | ||||
|                 }); | ||||
|   | ||||
| @@ -42,8 +42,10 @@ namespace NadekoBot.Modules.Games.Commands | ||||
|                     if ((rnd % 50) == 0) | ||||
|                     { | ||||
|                         var msg = await e.Channel.SendFile(GetRandomCurrencyImagePath()); | ||||
|                         await e.Channel.SendMessage($"❗ A random {NadekoBot.Config.CurrencyName} appeared! Pick it up by typing `>pick`"); | ||||
|                         var msg2 = await e.Channel.SendMessage($"❗ A random {NadekoBot.Config.CurrencyName} appeared! Pick it up by typing `>pick`"); | ||||
|                         plantedFlowerChannels.AddOrUpdate(e.Channel.Id, msg, (u, m) => { m.Delete().GetAwaiter().GetResult(); return msg; }); | ||||
|                         await Task.Delay(5000); | ||||
|                         await msg2.Delete(); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|   | ||||
| @@ -3,6 +3,7 @@ | ||||
|   "ForwardMessages": true, | ||||
|   "IsRotatingStatus": false, | ||||
|   "BufferSize": 4194304, | ||||
|   "Quotes": [], | ||||
|   "RemindMessageFormat": "❗⏰**I've been told to remind you to '%message%' now by %user%.**⏰❗", | ||||
|   "CustomReactions": { | ||||
|     "\\o\\": [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user