In the following code I'll receive Tweets from the Twitter API over Tweepy. I want to send these Tweets in a Discord channel, but how can I work with an await function in a normal class.
import discord
import tweepy
class Client(discord.Client):
async def on_ready(self):
print('ready')
class TweepyStream(tweepy.Stream):
def on_connect(self):
print('connceted')
def on_status(self, status):
print(status.text)
#How can I here send a message into a discord channel ?
stream = TweepyStream(keys)
stream.filter(follow = [], threaded=True)
client = Client()
client.run(token)