O
O
OKAnDrex2021-10-24 16:09:58
Python
OKAnDrex, 2021-10-24 16:09:58

My discord bot shuts down after closing the console after a while?

My discord bot shuts down after closing the console, after a while something tells me that maybe the problem is in these lines:

import discord
from random import randint, choice
from discord.ext import commands
import datetime, pyowm
import speech_recognition as sr
from discord.utils import get
import youtube_dl
 
import os
from time import sleep
import requests
from PIL import Image, ImageFont, ImageDraw
import io
import asyncio

and line
client.run(" тут у меня токен ")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-10-24
@OKAnDrex

How do you launch it? If directly from the console, it's not surprising.
Run with systemd or supervisor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question