skip to Main Content

RuntimeWarning , RuntimeError (Python Al Chat Bot on Discord Server) – Artificial Intelligence

My Aim: Be able to integrate Al Chatbot and Discord import nltk nltk.download('punkt') from nltk.stem.lancaster import LancasterStemmer stemmer=LancasterStemmer() import numpy import tflearn import tensorflow import random import json import pickle import nest_asyncio import asyncio #--------------------------------------------------------------------------- import discord import os with…

VIEW QUESTION

Asynchronous code failure when connecting to redis

I created a small class to perform basic operations with redis, using aioredis. class RedisService: def __init__(self, r_url) -> str: self.redis = r_url async def create_connection(self): return await aioredis.create_redis(self.redis) async def _get(self, key) -> str: try: return await self.create_connection().get(key, encoding='utf-8')…

VIEW QUESTION

Async Errors in python – Telegram API

I'm coding a telegram userbot (with telethon) which sends a message,every 60 seconds, to some chats. I'm using 2 threads but I get the following errors: "RuntimeWarning: coroutine 'sender' was never awaited" and "no running event loop". My code: ....…

VIEW QUESTION
Back To Top
Search