Example #1
0
 public async Task GetRandomQuote([Remainder] string x)
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("quote random",
                                                 new string[] { "**user**(optional,must be an @mention)" },
                                                 new string[] { $"{Program.prefix}quote random", $"{Program.prefix}quote random @exurb1a" },
                                                 Context);
 }
Example #2
0
 public async Task TransferCurrency()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("currency transfer",
                                                 new string[] { "**amount**(required, in case of decimal use a ,)\n",
                                                                "**currency**(required Currency you want to exchange (use -cu c for a list of available currencies))",
                                                                "\n**user**(required, must be an @ mention)" },
                                                 new string[] { "currency transfer 100 entropy @Margret#0027",
                                                                "cu tr 100 e @Margret#0027", "currency transfer 10,2 complexity @Margret#0027",
                                                                "cu tr 10,2 c @Margret#0027" },
                                                 Context);
 }
Example #3
0
 public async Task TradeCurrency()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("currency exchange",
                                                 new string[] { "**amount**(required use a , for comma number) ",
                                                                "**currency**(required Currency you want to exchange (use -cu c for a list of available currencies))",
                                                                "**currency**(required Currency you want to convert to)" },
                                                 new string[] { $"{Program.prefix}currency exchange 0,02 Complexity Entropy",
                                                                $"{Program.prefix}cu e 0,02 C E",
                                                                $"{Program.prefix}cu e 200 E C",
                                                                $"{Program.prefix}currency exchange 200 Entropy Complexity" },
                                                 Context
                                                 );
 }
Example #4
0
 public async Task RemoveBanWord(string word)
 {
     if (word != null && word.Trim().Length != 0)
     {
         _repo.RemoveBannedWord(word);
         _repo.SaveChanges();
         await Context.Channel.SendMessageAsync($"**{word.RemoveAbuseCharacters()}** removed and is now searchable");
     }
     else
     {
         await EmbedBuilderFunctions.GiveErrorSyntax("banword remove", new string[] { "word(required)" },
                                                     new string[] { "banword remove kitties are now unbanned" }, Context);
     }
 }
Example #5
0
 public async Task AddBanWord(string word)
 {
     if (word != null && word.Trim().Length != 0)
     {
         _repo.AddWord(word.ToLower());
         _repo.SaveChanges();
         await Context.Channel.SendMessageAsync($"**{word.RemoveAbuseCharacters()}** banned from being searched");
     }
     else
     {
         await EmbedBuilderFunctions.GiveErrorSyntax("banword add", new string[] { "word(required)" },
                                                     new string[] { "banword add kitties are now banned" }, Context);
     }
 }
Example #6
0
 public async Task AddQuote()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("quote add",
                                                 new string[] { "**quote**(required must be between \"\") ", "**user**(required must be @mention)" },
                                                 new string[] { $"{Program.prefix}quote add \"Why is the milk gone\" @exurb1a" }, Context);
 }
Example #7
0
 public async Task RemoveQuote()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("quote remove",
                                                 new string[] { "**quoteId**(required) " },
                                                 new string[] { $"{Program.prefix}quote remove 5 " }, Context);
 }
Example #8
0
 public async Task GetQuote()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("quote get",
                                                 new string[] { "(#-optional)**quoteId**(required must be a number) " },
                                                 new string[] { $"{Program.prefix}quote get 7", $"{Program.prefix}quote get #7" }, Context);
 }
Example #9
0
 public async Task GetRandomQuoteUser()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("quote user",
                                                 new string[] { "**user**(required must be @mention)" },
                                                 new string[] { $"{Program.prefix}quote user @exurb1a" }, Context);
 }
Example #10
0
 public async Task Mention()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("stream", new string[] { "**name**(required)", "**url**(optional,needs to be from twitch)" },
                                                 new string[] { $"{Program.prefix}stream \"existential despair\"",
                                                                $"{Program.prefix}stream \"existential despair\" \"https://www.twitch.tv/directory/game/Depression%20Quest\"" }, Context);
 }
Example #11
0
 public async Task QuickPoll()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("qp", new string[] { "**name**(required)" },
                                                 new string[] { $"{Program.prefix}qp Is the milk gone?" }, Context);
 }
Example #12
0
 public async Task Insult([Remainder] string s = "")
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("Insult", new string[] { "**name**(@ mention,required)" },
                                                 new string[] { $"{Program.prefix}Insult @Exurb1aBot#0069" }, Context);
 }
Example #13
0
 public async Task SetLocation()
 {
     await EmbedBuilderFunctions.GiveErrorSyntax("weather search", new string[] { "**Location name**(required)" },
                                                 new string[] { $"{Program.prefix}w set Birmingham", $"{Program.prefix}weather set Birmingham" },
                                                 Context);
 }