CloudBotIRC / CloudBotLegacy

This version is **discontinued** and **no longer maintained** by the core team, please move to CloudBot Refresh -
https://github.com/CloudBotIRC/CloudBot
GNU General Public License v3.0
57 stars 54 forks source link

Bot restarts when quitting #161

Closed Vasher closed 9 years ago

Vasher commented 11 years ago

Everytime I told the bot to quit (.quit/.stop) I would get the exception below. This was caused by the bot being named "bot.py" instead of "cloudbot". Once I renamed the file the exception went away but a new problem was created in that the bot will now quit then reconnect.

Unhandled exception in thread started by <function run at 0xb70a64fc>
Traceback (most recent call last):
  File "core/main.py", line 63, in run
    out = func(input.inp, **kw)
  File "plugins/admin.py", line 113, in stop
    os.execl("./cloudbot", "cloudbot", "stop")
  File "/usr/local/lib/python2.7/os.py", line 312, in execl
    execv(file, args)
OSError: [Errno 2] No such file or directory
urbels commented 11 years ago

bot naming bot.py is correct. there was launcher called cloudbot.