Skip to content

Commit

Permalink
ANother typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism authored Sep 26, 2024
1 parent 79c9795 commit 4603aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misskaty/plugins/chatbot_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from misskaty import app
from misskaty.core import pyro_cooldown
from misskaty.helper import check_time_gap, post_to_telegraph, use_chat_lang
from misskaty.vars import COMMAND_HANDLER, GOOGLEAI_KEY, OPENAI_KEY, OWNER_ID
from misskaty.vars import COMMAND_HANDLER, GOOGLEAI_KEY, OPENAI_KEY, OWNER_ID, SUDO

__MODULE__ = "ChatBot"
__HELP__ = """
Expand Down Expand Up @@ -123,7 +123,7 @@ async def openai_chatbot(self, ctx: Message, strings):
return await ctx.reply_msg("OPENAI_KEY env is missing!!!")
uid = ctx.from_user.id if ctx.from_user else ctx.sender_chat.id
is_in_gap, _ = await check_time_gap(uid)
if is_in_gap and (uid not == OWNER_ID):
if is_in_gap and (uid != OWNER_ID or uid not in SUDO):
return await ctx.reply_msg(strings("dont_spam"), del_in=5)
pertanyaan = ctx.input
msg = await ctx.reply_msg(strings("find_answers_str"), quote=True)
Expand Down

0 comments on commit 4603aff

Please sign in to comment.