small formatting changes
This commit is contained in:
		| @@ -12,16 +12,16 @@ from datetime import datetime | ||||
| from collections import defaultdict | ||||
| from operator import itemgetter | ||||
|  | ||||
| openaikey = config.OPENAI_TOKEN | ||||
| gapikey = config.GIF_TOKEN | ||||
| garfkey = config.GARFBOT_TOKEN | ||||
|  | ||||
| intents = discord.Intents.default() | ||||
| intents.members = True | ||||
| intents.messages = True | ||||
| intents.message_content = True | ||||
| client = discord.Client(intents=intents) | ||||
|  | ||||
| openaikey = config.OPENAI_TOKEN | ||||
| gapikey = config.GIF_TOKEN | ||||
| garfkey = config.GARFBOT_TOKEN | ||||
|  | ||||
| @client.event | ||||
| async def on_ready(): | ||||
|     asyncio.create_task(process_image_requests()) | ||||
| @@ -141,6 +141,7 @@ async def on_message(message): | ||||
|         search_term = message.content[8:] | ||||
|         await send_gif(message, search_term) | ||||
|  | ||||
|     # Army of Dawn Server | ||||
|     if message.guild and message.guild.id == 719605634772893757: | ||||
|  | ||||
|         if "meow" in message.content.lower(): | ||||
|   | ||||
| @@ -4,16 +4,16 @@ import discord | ||||
| import os | ||||
|  | ||||
| openai.api_key = config.OPENAI_TOKEN | ||||
| jonkey = config.JONBOT_TOKEN | ||||
|  | ||||
| intents = discord.Intents.default() | ||||
| intents.messages = True | ||||
| intents.message_content = True | ||||
| client = discord.Client(intents=intents) | ||||
| jonkey = config.JONBOT_TOKEN | ||||
|  | ||||
| @client.event | ||||
| async def on_ready(): | ||||
|     print(f"Logged in as {client.user.name} running gpt-3.5-turbo-0613.") | ||||
|     print(f"Logged in as {client.user.name} running gpt-3.5-turbo-0613.", flush=True) | ||||
|  | ||||
| @client.event | ||||
| async def on_message(message): | ||||
|   | ||||
| @@ -13,13 +13,12 @@ client = discord.Client(intents=intents) | ||||
|  | ||||
| @client.event | ||||
| async def on_ready(): | ||||
|     print(f"Logged in as {client.user.name} running gpt-3.5-turbo-0613.") | ||||
|     print(f"Logged in as {client.user.name} running gpt-3.5-turbo-0613.", flush=True) | ||||
|  | ||||
| @client.event | ||||
| async def on_message(message): | ||||
|     if message.author == client.user: | ||||
|         return | ||||
|  | ||||
|     if message.content.lower().startswith("hey money") or isinstance(message.channel, discord.DMChannel): | ||||
|         question = message.content[9:] if message.content.lower().startswith("hey money") else message.content | ||||
|         try: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user