Login Register






How to make a Skype bot! [Beginner] filter_list
Author
Message
How to make a Skype bot! [Beginner] #1
HOW TO MAKE A SKYPE BOT!
This is to be made in C#/Visual Studio (Any version) 


What you will need;


Skype4COM.dll // http://www.dllme.com/dll/download/11063/Skype4COM.dll //
Visual Studio (Any version) // http://lmgtfy.com/?q=Visual+Studio+2013 //
Brain // http://lmgtfy.com/?q=BR41N+4+S41L //

Okay, one you've got your Skype4COM.dll downloaded you should place it on your desktop or where ever you want it, for me I'm gonna have it on the desktop.
One you're on your VS goto "References" in the Solution Explorer.
[Image: DlsJ28d.png]
Rightclick => Add reference => Browse => Browse (Bottom right) => Click Skype4COM.dll => Add => Click the checkbox => "Ok"

Now we need to be able to access the library. So goto your main form code (Rightclick (Formname).cs then "View Code"

Goto the top where you have all the "using" statements and add "using SKYPE4COMlib;"

Now we want to create some global variables and objects, in your code add;
Code:
       // Variables and Objects        Skype skype = new Skype();        bool isConnected = false;

above "public (formname)();"

Now you want to add a button which will connect the bot to skype, so in the form designer just drag a button in there and set the properties to your liking.
Then you want to add a label and set the name (not the text, the name of the label) to "statusLabel" or you can just refactor the code to your labels name...

You want to double click it so it will make the buttons code stub then paste the following into it;
Code:
           // Starting the bot            try            {                this.skype.Attach(5, true);                MessageBox.Show("Skaiper Connected");            }            catch (Exception ex)            {                MessageBox.Show("Failed to connect, is skype running? ERROR:" + ex.Message, "Error");                if (MessageBox.Show("Do you want to start skype?", "Error", MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.Yes)                {                    skype.Client.Start(false, false);                }                else                {                    //do nothing...                }            }            isConnected = true;            //Label stuff            if (!isConnected)            {                statusLabel.Text = "Status: Not Connected";            }            else            {                statusLabel.Text = "Status: Connected";            }
This will attach it to Skype. You can change the text if you want. EG "MessageBox.Show("Botname Connected..."); or "Connected to skype" or whatever you fucking want <3...

So this will connect the bot and if it doesn't, it'll throw an error in a textbox.

Bam, you've connected your bot. If you want a part two to it showing you what you can do like automatically changing your mood, changing your status and stuff like that just post it in the comments ^^

Kind Regards,
Versified

//I didn't read this through so sorry if shit doesn't make sense or something or if there is dumb grammar or spelling mistakes.

[Image: OQRtKaN.png]
[Image: X1qGn2l.png]
[Image: Yl7I7cI.png]

Reply

RE: How to make a Skype bot! [Beginner] #2
Hey nice tutorial! Hope to see more.
[img=0x150]http://imgur.com/BD5LxZb.png[/img]
I'm done being an autism.  

Reply

RE: How to make a Skype bot! [Beginner] #3
(08-30-2015, 05:35 PM)Pirate Wrote: Hey nice tutorial!  Hope to see more.

np, looking forward to posting more

Reply

RE: How to make a Skype bot! [Beginner] #4
Thanks for tutorial! Gonna try tomorrow.
Listen, smile, agree, and then do whatever the fuck you were gonna do anyway.

Reply

RE: How to make a Skype bot! [Beginner] #5
i made a mass message tool and it looks good for my first thing i ever coded
Wanna be here? Donate NSP to me will go in rank order = More you pay the higher you will be!

@zorrophreak -75-nsp
@Rick - 50~nsp
@Customer - 10~nsp
@insidious15 - 6~nsp
@Diego - 1~nsp
@Logo - 1~nsp

Reply

RE: How to make a Skype bot! [Beginner] #6
(08-30-2015, 09:16 PM)Ravel Wrote: i made a mass message tool and it looks good for my first thing i ever coded
Nice, I'm pretty sure the first thing I coded was a simple "Hello world" with the default windows forms application MessageBox.Show method Tongue

Reply