initial commit of my fork of the code
This commit is contained in:
parent
ba6f93dc96
commit
cea0ba39bc
4
bot.py
4
bot.py
@ -116,7 +116,7 @@ class Bot:
|
|||||||
# pull the model
|
# pull the model
|
||||||
# await self.ollama.pull(self.model)
|
# await self.ollama.pull(self.model)
|
||||||
|
|
||||||
activity = discord.Activity(name='Status', state=f'Hi, I\'m {self.bot_name.title()}! I only respond to mentions.', type=discord.ActivityType.custom)
|
activity = discord.Activity(name='Status', state=f'Hi, I\'m {self.bot_name.title()}. Don\'t talk to me.', type=discord.ActivityType.custom)
|
||||||
await self.discord.change_presence(activity=activity)
|
await self.discord.change_presence(activity=activity)
|
||||||
|
|
||||||
logging.info(
|
logging.info(
|
||||||
@ -173,7 +173,7 @@ class Bot:
|
|||||||
await response.write(message, 'I am sorry, I am unable to respond in private messages.')
|
await response.write(message, 'I am sorry, I am unable to respond in private messages.')
|
||||||
return
|
return
|
||||||
|
|
||||||
# Do not respond to messages that don't mention us
|
# Do not respond to messages that don't mention us. 0.2 is 20 percent chance to answer anyway.
|
||||||
if not self.discord.user.mentioned_in(message) or message.author.bot or '@everyone' in message.content or '@here' in message.content:
|
if not self.discord.user.mentioned_in(message) or message.author.bot or '@everyone' in message.content or '@here' in message.content:
|
||||||
# don't respond to messages that don't mention us, but save it for context
|
# don't respond to messages that don't mention us, but save it for context
|
||||||
await self.save_message(str(message.channel.id), self.message(message, message.content), 'user')
|
await self.save_message(str(message.channel.id), self.message(message, message.content), 'user')
|
||||||
|
|||||||
@ -44,7 +44,7 @@ services:
|
|||||||
image: redis/redis-stack-server:latest
|
image: redis/redis-stack-server:latest
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- /portainer/Files/AppData/Config/discordluna/redis:/data
|
||||||
networks:
|
networks:
|
||||||
- redis
|
- redis
|
||||||
expose:
|
expose:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user