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


Skyper skype bot (with plugin system for custom commands) - Ki‎d‎'s - Mar 17, 2013

Hey,

I recently made a skype bot with an awesome plugin system wich will let you add your own commands. It works for group chat etc.

Sending a message code:
PHP Code

<?php 
Skyper
.SendMessage(chat, "Message"); 

It comes with the following plugins:
  • !Help - it shows a list of the commands

  • !Resolve - resolves a skye (use own api)

  • !info - shows bot info

  • !spoof - sends a email from a fake receiptent (use own mail script)

  • !say - let's the skype bot talk

  • !Sumbody - Says a weird text

  • !isup - checks if a site is up



functions:
  • Plugin system

  • Automaticly accept friends

  • Only you can use the commands



Plugin template:
PHP Code

<?php 
using System
;
using System.Collections.Generic;
using System.Text;
using Skyper;
using SKYPE4COMLib;
namespace 
Skyper.plugins
{
    public static class 
Help
    
{
  public static 
string Description
  
{
    
get 
    
{
    return 
"Your plugin description";
    }
  }

  public static 
void Execute(string[] Params, int chat, string username)
  {
//add code here
  
}
    }
} 

Adding a plugin:
  1. Create a file called {PLUGINNAME}.cs with the template as content

  2. enter a description

  3. enter some code in the execute funcition

  4. say !{PLUGINNAME} to use your plugin!



php mail script:
PHP Code

<?php
if(isset($_GET['to']))
{ 
$to = $_GET['to'];
$to = trim($to);
$from = $_GET['from'];
$headers = "From:" . $from . "\r\n";
$subject = $_GET['subject'];
$message = $_GET['message'];
if(
mail($to,$subject,$message,$headers))
{
echo 
"message Sent!";
}
else
{
echo  
"message did not send!";
}
}
?>

Download: http://t09.nl/skyper.rar
Mirror: https://mega.co.nz/#!MIpSmTRC!ROBX5wB6CYqNqFqlG_OIpRVR05sP9Z3Dy5HzJWO9pm8
Virusscan: https://www.virustotal.com/nl/file/ab8dacd8e9a54e86638952d1a62ddaac29e4a4a7ee8488dfb0a2edeb71a98c4a/analysis/1363461314/

Live demo: skyper.bot

Prestige

I don't know why this was deleted while it is just a genuine release?


* - Para_Merc - Mar 17, 2013

It's pretty cool. I have also created a skype bot in C# with over 15 default commands. The plugin system is unique, but one must know C# in order to make their own command.


* - TheCl0wnhelper - Mar 18, 2013

Hey Prestige :)

I just downloaded this yesterday this is awesome! Can you show more examples of commands that you can make? Like one that could load a random image from google or 4chan, something like that or say a random fact from a pair of facts?


* - Para_Merc - Mar 19, 2013

(Mar 18, 2013 04:43 AM)TheCl0wnhelper Wrote:  Hey Prestige :)

I just downloaded this yesterday this is awesome! Can you show more examples of commands that you can make? Like one that could load a random image from google or 4chan, something like that or say a random fact from a pair of facts?

Haha, that sounds a lot like Night from LF's Skype Bot, that shows random facts with the ".fact" command. It's easy, add me on Skype if you would like me to teach you.

Skype: mercenary.lf


* - TheCl0wnhelper - Mar 19, 2013

(Mar 19, 2013 02:00 PM)Para_Merc Wrote:  Haha, that sounds a lot like Night from LF's Skype Bot, that shows random facts with the ".fact" command. It's easy, add me on Skype if you would like me to teach you.

Skype: mercenary.lf

That would be great! I just figured out how to make the bot say a random number from 1-100, but after hours of reverse engineering lol!


* - Toblerone - Mar 19, 2013

(Mar 17, 2013 08:41 PM)Para_Merc Wrote:  But one must know C# in order to make their own command.
Not if a scripting system was implemented then you could have .txt files with a script that the bot interprets and voila!


* - Whezlo - Mar 20, 2013

Thanks alot! I will try this today!

Thanks again m8!


* - TheCl0wnhelper - Mar 20, 2013

If anyone has more commands or plugins that they make, post the code in this thread , please. Thanks :)


* - Local Celeb - Mar 20, 2013

Wow shit, thanks for this :) I've been dabbling in making my own for a little while, but I was always put off by making the base for it :P I'm lazy, I know.

Either way, Im going to make some plugins for this :)


* - TheCl0wnhelper - Mar 20, 2013

(Mar 20, 2013 10:52 AM)Moist Wrote:  Wow shit, thanks for this :) I've been dabbling in making my own for a little while, but I was always put off by making the base for it :P I'm lazy, I know.

Either way, Im going to make some plugins for this :)

Moist, if you make any new ones, mind posting the code here im trying to Learn some C# along with make a cool bot ;)


* - ๖ۣۜTOP KEK - Mar 22, 2013

I've been getting "Error 'System.Net.WebClient.DownloadString(string)' is a 'method' but is used like a 'type' in Command: isup".


* - TheCl0wnhelper - Mar 22, 2013

please someone post more commands if they get it to work , thanks in advance :)


* - Fhoto. - Apr 21, 2013

Might be gravedigging.

But looks cool, going to try add my own commands.


* - TheCl0wnhelper - May 5, 2013

Hey plurox, if you make any more commands, mind sharing the code?Thanks.


* - v3xr - May 7, 2013

This is awesome... exactly what I was looking for! And the plugin feature is excellent. Many thanks Prestige! :D

EDIT: An awesome feature to have would be an auto-responder!