Great application, Adding plugins is real easy. Any chance of the main application becoming open source?
|
C#
Skyper skype bot (with plugin system for custom commands) |
(Mar 22, 2013 02:07 AM)๖ۣۜTOP KEK Wrote: I've been getting "Error 'System.Net.WebClient.DownloadString(string)' is a 'method' but is used like a 'type' in Command: isup". Fixed code: using System; using System.Collections.Generic; using System.Text; using Skyper; using SKYPE4COMLib; using System.Net; namespace Skyper.plugins { public static class Help { public static string Description { get { return "[url] checks if a site is online"; } } public static void Execute(string[] Params, int chat, string username) { string Source = new WebClient().DownloadString("http://www.isup.me/" + Params[1]); if (Source.Contains("It's just you")) { Skyper.SendMessage(chat, Params[1] + " is up"); } else { Skyper.SendMessage(chat, Params[1] + " is down"); } } } } Before: string Source = new WebClient.DownloadString("http://www.isup.me/" + Params[1]); After: string Source = new WebClient().DownloadString("http://www.isup.me/" + Params[1]); It was missing a simple ()
Here's a plugin of my creation to got any source code from a web page.
Filename: source.cs Usage: !source [URL] Example: !source http://google.com Quote: Regards, CraYK2. (Jul 7, 2013 12:22 PM)CraYK2 Wrote: Here's a plugin of my creation to got any source code from a web page. Would you not use Params[0]? Also; OP, how does the plugin system work?
thanks i have now my skype resolver working xD
Website: http://wiz4rdhack3rs.com/ Skype: wiz4rdhack3rs
https://hackforums.net/showthread.php?tid=3737659
Seems like that one is a bit more structured and better written. |
|
|




![[Image: 2DyK5XM.gif]](https://i.imgur.com/2DyK5XM.gif)