Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async Task Maindo(SocketMessage arg)
- {
- if (Economy.CountProductForUser(Product.flower, arg.Author.Id) > 0)
- {
- var User = arg.MentionedUsers.Count >= 1 ? arg.MentionedUsers.First() : null;
- if (User == null)
- {
- await arg.Channel.SendMessageAsync("Please mention a user to give the flower to!");
- var WFR = new WaitForResponse()
- {
- TimeLimitS = 15,
- ChannelId = arg.Channel.Id,
- UserId = arg.Author.Id
- };
- var Msg = await WFR.Start();
- User = Msg.MentionedUsers.Count > 0 ? Msg.MentionedUsers.First() : null;
- }
- await arg.Channel.SendMessageAsync($"You gave {User.Mention} a flower! <3");
- Economy.ChangeProductCountForUser(Product.flower, -1, arg.Author.Id);
- Economy.ChangeProductCountForUser(Product.flower, 1, User.Id);
- }
- else
- {
- await arg.Channel.SendMessageAsync($"You need to buy flowers first! `{Program.Prefix}buy flower`");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement