mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
ADdded smth
This commit is contained in:
+17
-9
@@ -4,7 +4,7 @@ import re
|
||||
import sys
|
||||
from enum import Enum
|
||||
from datetime import datetime
|
||||
from typing import Optional, TypedDict
|
||||
from typing import Optional
|
||||
|
||||
import discord
|
||||
import openai
|
||||
@@ -88,14 +88,21 @@ class Events(commands.Cog):
|
||||
description="Jeśli nie wiesz jak użyć tej komendy to nawet nie próbuj"
|
||||
)
|
||||
async def armia_hammera(self, ctx, message_txt: str, recipient: Optional[discord.User]):
|
||||
pass
|
||||
await self.armia_hammera_back(ctx, message_txt, recipient)
|
||||
|
||||
async def armia_hammera_back():
|
||||
#user = await self.bot.fetch_user(703985955312238664)
|
||||
#channel = await user.create_dm()
|
||||
#await channel.send(message.content)
|
||||
#await message.reply(f"Poszlo do Saint {message.content}")
|
||||
pass
|
||||
async def armia_hammera_back(self, ctx, message_txt, recipient = None):
|
||||
recipients = []
|
||||
if recipient:
|
||||
recipients.append(recipient.id)
|
||||
else:
|
||||
for superfryta in SPECJALNE_ZIEMNIACZKI.values():
|
||||
recipients.append(superfryta[0])
|
||||
|
||||
for item in recipients:
|
||||
user = await self.bot.fetch_user(item)
|
||||
channel = await user.create_dm()
|
||||
self.logger.info("User %s -> %s: %s", ctx.message.author, user, message_txt)
|
||||
#await channel.send(message_txt)
|
||||
|
||||
|
||||
|
||||
@@ -147,7 +154,8 @@ class Events(commands.Cog):
|
||||
await ai_functions.echo(message)
|
||||
return
|
||||
elif self.armia[message.author.id]== Dm_Mode.ARMIA_HAMMERA:
|
||||
#self.armia_hammera_back()
|
||||
ctx = await self.bot.get_context(message)
|
||||
self.armia_hammera_back(ctx=ctx, message_txt=message.content)
|
||||
return
|
||||
elif self.armia[message.author.id]== Dm_Mode.SEKRETNY_SEKSRET:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user