Pyton name need 'terminate' or 'disconect'

log(‘Plugin: You have ‘+(‘lost’ if result == 2 else ‘won’)+’, you gained ‘+str(coins)+’ coins!’)
if InBattleArena:
InBattleArena = False
start_bot() <------ i need here terminate or disconetct botting
but i dnot know name command ım englis bad exuse me

start_bot() ----> terminate or disconect

disconnect is a function you can call to disconnect from the server.

1 Like

Ty ryan but bot why only When the connection breaks it comes cilentless

01:21:42] Giriş: Giriş bilgileri gönderiliyor

[01:21:42] agent sunucu bağlantısı [54.38.3.27: 15884]

[01:21:43] Bağlandı

[01:21:47] Otomatik Deneme: Deneme işlemi başlatıldı

[01:21:47] Clientsiz: 30 saniye içinde yeniden deneniyor

[01:22:17] gateway sunucu bağlantısı [54.38.3.27: 15779]

[01:22:18] Bağlandı

[01:22:19] Sunucu kapasitesi [RSilkroad] [0%]

[01:22:21] Giriş: Giriş bilgileri gönderiliyor

[01:22:21] agent sunucu bağlantısı [54.38.3.27: 15885]

[01:22:22] Bağlandı

[01:22:26] Otomatik Deneme: Deneme işlemi başlatıldı

[01:22:26] Clientsiz: 30 saniye içinde yeniden deneniyor

[01:22:56] gateway sunucu bağlantısı [54.38.3.27: 15779]

[01:22:57] Bağlandı

[01:22:57] Sunucu kapasitesi [RSilkroad] [0%]

[01:22:59] Giriş: Giriş bilgileri gönderiliyor

[01:23:00] agent sunucu bağlantısı [54.38.3.27: 15887]

[01:23:00] Bağlandı

[01:23:04] Otomatik Deneme: Deneme işlemi başlatıldı

[01:23:04] Clientsiz: 30 saniye içinde yeniden deneniyor

[01:23:34] gateway sunucu bağlantısı [54.38.3.27: 15779]

[01:23:35] Bağlandı

[01:23:36] Sunucu kapasitesi [RSilkroad] [0%]

[01:23:38] Giriş: Giriş bilgileri gönderiliyor

[01:23:38] agent sunucu bağlantısı [54.38.3.27: 15886]

[01:23:39] Bağlandı

[01:23:43] Otomatik Deneme: Deneme işlemi başlatıldı

[01:23:43] Clientsiz: 30 saniye içinde yeniden deneniyor

[01:24:13] gateway sunucu bağlantısı [54.38.3.27: 15779]

I think ‘terminating’ will do my job

Adsız

problem solved

what are the functions?

terminate()
disconnect() ??

disconnect()

You don’t need a terminate function because Python has that.

1 Like

so can we said that we can use terminate() function in plugin for terminating bot? i tried that bot it doesn^t work.
is there anyway to terminate bot with a function in plugin @Ryan ?

Why do you want a terminate function?

for a plugin. the server i am playing have ip limit and i want to use charecters more than ip limit. i can do it if i use a terminate command. so one bot will terminate when it does it work and if it termanted the other one can login :smiley:

I just gave you exactly what you need. It’s pointless for me to add it because PYTHON has it built in.

activate them all and deactivate them all
Can you bring to the conditions ryan ?

i c. lots of things actually u can add to bot but lots of these things will be end of the game. we can not read that until we c its results many times. the things we trying to do will be our end :smiley:
it is not critical for me :smiley: thanks for your help. i will try to do it but the link you have sent me didnt contain the command i am looking for.

:man_facepalming:

import os
import signal

os.kill(os.getpid(), signal.SIGKILL)

this was not sent to me, was it?

If you scroll down, yes. Use Google, it has all the answers related to Python.

Python Error: ‘module’ object has no attribute ‘SIGKILL’
how can we solve this error

You try these?

image

i had tried sys.exit before it did not worked but the os module is worked. Thanks @Ryan :smiley: