Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class rolldice : ModuleBase<SocketCommandContext>
- {
- [Command("rolldice")]
- public async Task rolldiceAsync()
- {
- Random rand;
- rand = new Random();
- string[] RollDice;
- RollDice = new string[]
- {
- "photo/Dice1.png", // 0
- "photo/Dice2.png", // 1
- "photo/Dice3.png", // 2
- "photo/Dice4.png", // 3
- "photo/Dice5.png", // 4
- "photo/Dice6.png" // 5
- };
- int randomDiceIndex = rand.Next(RollDice.Length);
- string Dice = RollDice[randomDiceIndex];
- await Context.Channel.SendFileAsync(Dice);
- if (randomDiceIndex == 0)
- {
- await Task.Delay(1500);
- await ReplyAsync("1. YOU WIN! (nothing dood)");
- }
- else if (randomDiceIndex == 1)
- {
- await Task.Delay(1500);
- await ReplyAsync("2. What is 1+1 dood?");
- }
- else if (randomDiceIndex == 2)
- {
- await Task.Delay(1500);
- await ReplyAsync("3.14159265359 dood...");
- }
- else if (randomDiceIndex == 3)
- {
- await Task.Delay(1500);
- await ReplyAsync("4. You must be really bored to roll this dice dood?");
- }
- else if (randomDiceIndex == 4)
- {
- await Task.Delay(1500);
- await ReplyAsync("5. Your age dood.");
- }
- else if (randomDiceIndex == 5)
- {
- await Task.Delay(1500);
- await ReplyAsync("666");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement