Hack Forums
[C#] Skyper skype bot (with plugin system for custom commands) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Skyper skype bot (with plugin system for custom commands) (/showthread.php?tid=3334269)

Pages: Pages 1 2 3 4


* - SIM-374889 - May 12, 2013

Great application, Adding plugins is real easy. Any chance of the main application becoming open source?


* - takedown. - May 14, 2013

Awesome bot u got there mate.

Kind regards


* - Matak - Jul 4, 2013

(Mar 22, 2013 02:07 AM)Neo_Incognito 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 ()


* - CraYK2 - Jul 7, 2013

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:
Code
using System;
using System.Collections.Generic;
using System.Text;
using Skyper;
using SKYPE4COMLib;
using System.Net;
namespace Skyper.plugins
{
    public static class SourceCode
    {
  public static string Description
  {
    get
    {
    return "[URL] - Got the source code of a website.";
    }
  }

  public static void Execute(string[] Params, int chat, string username)
  {
    // This line write the source code of the url passed in params.
    Skyper.SendMessage( chat, new WebClient().DownloadString(Params[1]) );
  }
    }
}


Regards,
CraYK2.


* - TPawnzerHD - Jul 10, 2013

WOW Thanks dude this is amazing, the plugin is just fantastic
thanks again :D


* - Cornflower Blue இڿڰۣ-ڰۣ— - Jul 10, 2013

(Jul 7, 2013 12:22 PM)CraYK2 Wrote:  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

Regards,
CraYK2.

Would you not use Params[0]?
Also; OP, how does the plugin system work?


* - _Killzone_ - Jul 16, 2013

I need help adding commands. It's not letting me.


* - Ki‎d‎'s - Jul 17, 2013

(Jul 10, 2013 01:37 PM)lhendrey4.5 Wrote:  Would you not use Params[0]?
Also; OP, how does the plugin system work?

Params[0] is the command itself, and it works like an interpreter it parses the code to a byte[] (by compiling it) and it executes the main command.


* - JasperRed - Jul 17, 2013

i need help with adding commands also


* - _Killzone_ - Jul 17, 2013

Thanks man I got the commands to work and stuff. I'm about to go add some more.


* - ksocially - Feb 22, 2014

thanks i have now my skype resolver working xD
Website: http://wiz4rdhack3rs.com/
Skype: wiz4rdhack3rs


* - barryownt - Jun 12, 2014

Nice tool!
But i cant start it up anymore ;(
It worked a couple times but now it wont startup i dont know whats wrong please help me!


* - Loladmin - Jun 12, 2014

https://hackforums.net/showthread.php?tid=3737659

Seems like that one is a bit more structured and better written.


* - SIM-2223238 - Jun 29, 2014

The download is not working. Please post another one.


* - ᴋ ɪ ᴛ - Nov 23, 2014

I've been using this and enjoy it but I'm curious if it's possible to make the bot work in Chat Groups as well?
I'm not sure this project is still active but you're welcome to contact me over Skype: NinjaKittenDerp
I will pay to have this function added if needed.