Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator
Iranian Programming Support

Csharp TeaM

Top posting users this month

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


    Help C# For Member Bot

    Share
    avatar
    ali.reza27
    New Member
    New Member

    Posts : 8
    Points : 12
    Thanks : 0
    Join date : 2014-10-04

    Open Help C# For Member Bot

    Post by ali.reza27 on Sat Oct 04, 2014 2:22 pm

    سلام دوستان من یک ممبر بوت نوشتم در روم از یوزر سوال میپرسه مثلا
    1+1
    2
    بعد ممبر میشه کامل نوشتم اما ادمین نونه میکنه و بوت های که تو روم منن ادمین هستن بازم نون میکنه البته تو کد نویسی بهش تعریف کردم که فقط نون ها رو ممبر کنه اما ادمین هم نون میکنه میشه کسی کمک کنه مرسی این تمامی کد
    Code:
    XmppClientConnection x;
            private void button1_Click(object sender, EventArgs e)
            {
                x = new XmppClientConnection { Server = "nimbuzz.com", ConnectServer = "o.nimbuzz.com", Port = 5222 }; //server o connect server inja minevisim ba port
                x.Open(textBox1.Text, textBox2.Text, textBox3.Text, 50);
                x.Status = textBox4.Text;
                x.OnAuthError += new XmppElementHandler(failed);
                x.OnLogin += new ObjectHandler(connected);
                x.OnClose += new ObjectHandler(dc);
                x.OnMessage += new agsXMPP.protocol.client.MessageHandler(remot);
                x.OnPresence += new PresenceHandler(member);
            }
            private void connected(object sender)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new ObjectHandler(connected), new object[] { sender });
                }
                else
                {

                    textBox1.BackColor = Color.Green;
                    textBox2.BackColor = Color.Green;
                    textBox3.BackColor = Color.Green;
                    textBox4.BackColor = Color.Green;
                    this.timer1.Start();
                    this.timer1.Interval = 20000;
                    {
                        try
                        {
                            x.Send("<presence to='" + room.Text + "@conference.nimbuzz.com/" + textBox1.Text + "' xml:lang='en'><x xmlns='http://jabber.org/protocol/muc'><password>" + pasroom.Text + "</password></x></presence>");
                        }
                        catch { }
                    }
                }
            }
            private void dc(object sender)
            {
                if (checkBox33.CheckState == CheckState.Checked)
                {
                    x = new XmppClientConnection { Server = "nimbuzz.com", ConnectServer = "o.nimbuzz.com", Port = 5222 }; //server o connect server inja minevisim ba port
                    x.Open(textBox1.Text, textBox2.Text, textBox3.Text, 50);
                    x.Status = textBox4.Text;
                    x.OnAuthError += new XmppElementHandler(failed);
                    x.OnLogin += new ObjectHandler(connected);
                    x.OnClose += new ObjectHandler(dc);
                    textBox1.BackColor = Color.Yellow;
                    textBox2.BackColor = Color.Yellow;
                    textBox3.BackColor = Color.Yellow;
                    textBox4.BackColor = Color.Yellow;
                }
            }
            private void failed(object sender, Element e)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new XmppElementHandler(failed), new object[] { sender, e });
                }
                else
                {
                    textBox1.BackColor = Color.Red;
                    textBox2.BackColor = Color.Red;
                    textBox3.BackColor = Color.Red;
                    textBox4.BackColor = Color.Red;
                    this.timer1.Stop();
                    MessageBox.Show("Failed To Login !!", "info", MessageBoxButtons.OK, MessageBoxIcon.Error);

                }
            }
            private void remot(object sender, agsXMPP.protocol.client.Message msg)//**********************************************
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new agsXMPP.protocol.client.MessageHandler(remot), new object[] { sender, msg });
                }
                else
                {
                    if (this.checkBox12.Checked)// member users
                    {
                        try
                        {
                            if (msg.Body.ToLower().StartsWith(javab.Text))
                            {
                                x.Send("<message to="" + msg.From + "" type="chat"><body>Great Answer *V* You Now Member !!</body></message>");
                                x.Send("<iq to='" + room.Text + "@conference.nimbuzz.com' type='set' id='lol'><query xmlns='http://jabber.org/protocol/muc#admin'><item affiliation='member' jid='" + msg.From.Resource + "@nimbuzz.com'/></query></iq>");
                                x.Send("<message id='mir_141' to='" + room.Text + "@conference.nimbuzz.com' type='groupchat'><body>" + msg.From.Resource + "\n\nGreat Answer *V* You Now Member !!</body></message>");
                                //One++;
                                //label16.Text = One.ToString(); ;
                            }
                        }
                        catch { }
                    }
                }
            }
            private void member(object sender, agsXMPP.protocol.client.Presence Pres)
            {
                if (InvokeRequired)
                {
                    base.BeginInvoke(new agsXMPP.protocol.client.PresenceHandler(member), new object[] { sender, Pres });//****************************************************
                    return;
                }
                else
                {
                    if (Pres.Type == PresenceType.available)
                    {
                        if (Pres.MucUser.Item.Affiliation == agsXMPP.protocol.x.muc.Affiliation.none)
                        try
                        {
                            if (this.checkBox12.Checked)//  sol javab member
                            {
                                if (Pres.MucUser.Item.Affiliation == agsXMPP.protocol.x.muc.Affiliation.none)
                                {
                                    x.Send("<message to='" + this.room.Text + "@conference.nimbuzz.com/" + Pres.From.Resource + "' type='chat'><body>" + this.soqal.Text + "</body></message>");

                                }
                            }
                        }
                        catch { }
                    }
                }
            }
        }
    }

    با
    agsXMPP.dll
    نوشتم مرسی
    avatar
    Hidden
    New Member
    New Member

    Posts : 20
    Points : 28
    Thanks : 2
    Join date : 2014-07-09
    Age : 20

    Open Re: Help C# For Member Bot

    Post by Hidden on Sat Oct 04, 2014 4:13 pm

    salam
    aval ye listBox be proje add kon

    to void On Presence Bgo Id None K join shod b list add kon
    va to void onmessage bgo age useri k jvb dad to listmon bod memberkon va badesh az list pak kon


    OnPresence:


    if (checkMemberQ.Checked && (pres.MucUser.Item.Affiliation == Affiliation.none))//Member Question
    {
    listBox1.Add(pres.From.Resource);
    x.Send(new agsXMPP.protocol.client.Message(room + "@conference.nimbuzz.com/" + pres.From.Resource, MessageType.chat, "member question : 1+1=?"));
    }
    }



    On Message :


    if (msg.Type == MessageType.chat)
    {
    if (msg.Body.TLower() == "2" && (this.listBox1.Contains(msg.From.Resource)) && (checkMemberQ.Checked))
    {
    this.listBox1.Remove(msg.From.Resource);
    x.Send("<iq xmlns='jabber:client' to='" + Roomname + "@conference.nimbuzz.com' type='set' id='s6a'><query xmlns='http://jabber.org/protocol/muc#admin'><item affiliation='member' jid='" + msg.From.Resource + "@nimbuzz.com' /></query></iq>");
    x.Send("<message to='" + Roomname + "@conference.nimbuzz.com/" + msg.From.Resource + "' type='chat'><body>? " + msg.From.Resource + " is now Member.</body></message>");
    }


    avatar
    ali.reza27
    New Member
    New Member

    Posts : 8
    Points : 12
    Thanks : 0
    Join date : 2014-10-04

    Open Re: Help C# For Member Bot

    Post by ali.reza27 on Sat Oct 04, 2014 5:24 pm

    مرسی انجام دادم اما ج نداد متاسفانه
    منتظر
    Mehran
    هستم ببینم چکار میتونه بکونه واسمون
    avatar
    ali.reza27
    New Member
    New Member

    Posts : 8
    Points : 12
    Thanks : 0
    Join date : 2014-10-04

    Open Re: Help C# For Member Bot

    Post by ali.reza27 on Sat Oct 04, 2014 11:10 pm

    لطفا اقا مهران عزیز کمک کنه اگ تاپیک دید
    کد بالا دادم فقط اصلاح میخواد
    موقه ممبر دادن ادمین نونه میکنه با دستور مثلا
    2+2
    4
    مرسی
    avatar
    Hidden
    New Member
    New Member

    Posts : 20
    Points : 28
    Thanks : 2
    Join date : 2014-07-09
    Age : 20

    Open Re: Help C# For Member Bot

    Post by Hidden on Sat Oct 04, 2014 11:47 pm

    Farqi nemikone Azizam In Code k Dadam Faqat vase usera none Javab mide
    age nafahmidi bgo source bdam

    movafaq bashi
    avatar
    ali.reza27
    New Member
    New Member

    Posts : 8
    Points : 12
    Thanks : 0
    Join date : 2014-10-04

    Open Re: Help C# For Member Bot

    Post by ali.reza27 on Sun Oct 05, 2014 12:43 am

    میدونم داداش چی میگی تو دستور هم منم قرار دادم فقط به نون ها رو ممبر میکنه مشکل من اینکه مثلا بوت ک گذاشتم روم یهوو ایدی های ادمین بوت مسابقه ویا فول بوت ایدی هاشون رو نونه میکنه حتما یه مشکلی هست در کل ایدی ادمین نونه میکنه مرسی Gol
    avatar
    Hidden
    New Member
    New Member

    Posts : 20
    Points : 28
    Thanks : 2
    Join date : 2014-07-09
    Age : 20

    Open Re: Help C# For Member Bot

    Post by Hidden on Sun Oct 05, 2014 1:15 am

    Age Code haro koni
    Mibini ke Har id none ke join mishe idsho be ye listbox add mikone va soale member ro miporse

    hala miayn to voide Message
    Migi age type = chat bod yani to pv javab dad !
    va age idshto list bod(faqat id haye none to liste pas ro admina tasir nadare) bia id ke msg ro ferestade member kon
    Man to botam az in Ravesh estefade kardam ravesh haye dg ham has in sade tarineshe hala khod dani.

    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 25
    Location : Iran♥khozestan♥ahwaz

    Open Re: Help C# For Member Bot

    Post by jonewaram on Sun Oct 05, 2014 8:27 am

    slm doste aziz
    to forum y surce hast fkr konam arshiya neveshte
    download kon moshkelet raf mishe
    age vaqt beshe vasat y surc minevisam
    avatar
    ali.reza27
    New Member
    New Member

    Posts : 8
    Points : 12
    Thanks : 0
    Join date : 2014-10-04

    Open Re: Help C# For Member Bot

    Post by ali.reza27 on Sun Oct 05, 2014 11:23 am

    مرسی
    Hidden
    و
    jonewaram
    اگه تونستید با همین کد ک دادم سورسشو کامل کنید و لینگ کنید سورس رو ک ادمین نونه نکنه مرسی منتظر هستم خیلی محتاجشم
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 25
    Location : Iran♥khozestan♥ahwaz

    Open Re: Help C# For Member Bot

    Post by jonewaram on Sun Oct 05, 2014 2:15 pm

    slm b in adres forum boro surc male dadash arshiyas hatman moshkelet raf mishe



    Code:
    http://programming.mrforum.net/t797-help-c-help-baraye-member-kardan-be-surate-soalo-javab?highlight=member



    age hal nashod bayad vaysi ta saram khalvat she man dge barname nevisi nim nemikonam
    kheyli giram
    ama age bikar shodam vasat minevisam aziz
    avatar
    ali.reza27
    New Member
    New Member

    Posts : 8
    Points : 12
    Thanks : 0
    Join date : 2014-10-04

    Open Re: Help C# For Member Bot

    Post by ali.reza27 on Sun Oct 05, 2014 4:17 pm

    سلام داداش من این از قبل دانلود کردم اما کار نمیده و ادمین نونه میکنم بازم ممنون از شما ببخشید مزاحم شدم
    avatar
    Hidden
    New Member
    New Member

    Posts : 20
    Points : 28
    Thanks : 2
    Join date : 2014-07-09
    Age : 20

    Open Re: Help C# For Member Bot

    Post by Hidden on Sun Oct 05, 2014 4:21 pm

    Bia Azizam Inam Source !
    vali say kon khodet benvisi
    Ajalei neveshtam
    Test Nashode.

    link mostaqim:

    [You must be registered and logged in to see this link.]
    avatar
    ali.reza27
    New Member
    New Member

    Posts : 8
    Points : 12
    Thanks : 0
    Join date : 2014-10-04

    Open Re: Help C# For Member Bot

    Post by ali.reza27 on Sun Oct 05, 2014 7:46 pm

    سلام مرسی تست کردم اصلا ممبر نمیده
    ج سوال تو روم میدی اصلا ممبر نمیکنه مشکل داره
    avatar
    Hidden
    New Member
    New Member

    Posts : 20
    Points : 28
    Thanks : 2
    Join date : 2014-07-09
    Age : 20

    Open Re: Help C# For Member Bot

    Post by Hidden on Mon Oct 06, 2014 5:52 am

    javabo bayad to pve bot bedi aziz

    Be code ha nga kon

    khodet mitoni taqir bedi ke to room jvb bedan Ino bezar:


    if(msg.Type == MessageType.groupchat)
    {
    //
    }
    avatar
    $iahi
    Csharp Admin
    Csharp Admin

    Posts : 122
    Points : 204
    Thanks : 34
    Join date : 2014-02-17

    Open Re: Help C# For Member Bot

    Post by $iahi on Tue Oct 07, 2014 7:16 pm

    salam
    man ghabalan vase firebuzz ye hamchin boti neveshtam
    shayad be dardet bokhore
    [You must be registered and logged in to see this link.]






    Sponsored content

    Open Re: Help C# For Member Bot

    Post by Sponsored content


      Current date/time is Thu Jun 22, 2017 3:17 pm