Adding Initial API support, updating readme
This commit is contained in:
parent
6732506dae
commit
92015d8880
27 changed files with 78 additions and 33 deletions
17
Geekbot.net/Commands/Google.cs
Normal file
17
Geekbot.net/Commands/Google.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System.Threading.Tasks;
|
||||
using Discord.Commands;
|
||||
|
||||
namespace Geekbot.net.Commands
|
||||
{
|
||||
public class Google : ModuleBase
|
||||
{
|
||||
[Command("google", RunMode = RunMode.Async)]
|
||||
[Summary("Google Something.")]
|
||||
public async Task Eyes([Remainder, Summary("SearchText")] string searchText)
|
||||
{
|
||||
var url = $"http://lmgtfy.com/?q={searchText.Replace(' ', '+')}";
|
||||
|
||||
await ReplyAsync($"Please click here :unamused:\r\n{url}");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue