17 lines
393 B
Python
17 lines
393 B
Python
|
import asyncio
|
||
|
import aiohttp
|
||
|
import next
|
||
|
|
||
|
|
||
|
class Client(next.Client):
|
||
|
async def on_message(self, message: next.Message):
|
||
|
if message.content == "hello":
|
||
|
await message.channel.send("hi how are you")
|
||
|
|
||
|
async def main():
|
||
|
async with aiohttp.ClientSession() as session:
|
||
|
client = Client(session, "BOT TOKEN HERE")
|
||
|
await client.start()
|
||
|
|
||
|
asyncio.run(main())
|