Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Skyper skype bot (with plugin system for custom commands)

Great application, Adding plugins is real easy. Any chance of the main application becoming open source?
Awesome bot u got there mate.

Kind regards
Send me a PM if you got any questions/concerns regarding my Products.

(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:
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.
WOW Thanks dude this is amazing, the plugin is just fantastic
thanks again :D
(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?
I need help adding commands. It's not letting me.
(Jul 10, 2013 01:37 PM)Cornflower Blue இڿڰۣ-ڰۣ— 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.
i need help with adding commands also
Thanks man I got the commands to work and stuff. I'm about to go add some more.
thanks i have now my skype resolver working xD
Website: http://wiz4rdhack3rs.com/
Skype: wiz4rdhack3rs
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!
https://hackforums.net/showthread.php?tid=3737659

Seems like that one is a bit more structured and better written.
The download is not working. Please post another one.
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.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by BarretNov 11, 2017 09:53 AM 3 374 Nov 11, 2017 09:53 AM
Last Post: StaPol
[Python] by IchiApr 25, 2017 12:23 PM 4 253 Apr 25, 2017 12:23 PM
Last Post: (╯°□°)╯︵ ┻━━┻
[Java] by st0rmiiJul 9, 2016 04:49 PM 2 150 Jul 9, 2016 04:49 PM
Last Post: st0rmii