Changed the activity be listening to instead of playing
This commit is contained in:
parent
ddd5cd1db0
commit
ed5297e896
7
main.py
7
main.py
@ -38,11 +38,12 @@ class Ruby(discord.Client):
|
||||
if text is None:
|
||||
await self.change_presence(status=discord.Status.online, activity=None)
|
||||
else:
|
||||
activity = discord.Game(name=text)
|
||||
activity = discord.Activity(type=discord.ActivityType.listening, name=text)
|
||||
await self.change_presence(status=discord.Status.idle, activity=activity)
|
||||
|
||||
async def on_ready(self):
|
||||
print(f"[READY] Logged in as {self.user} (ID: {self.user.id})")
|
||||
await self.set_activity("you...")
|
||||
self.trainer.reinforce_core_memory()
|
||||
|
||||
async def idle_dream_loop(self):
|
||||
@ -52,10 +53,10 @@ class Ruby(discord.Client):
|
||||
if now - self.last_message_time > self.idle_threshold:
|
||||
print("[IDLE] Ruby has been idle — entering dream mode.")
|
||||
|
||||
await self.set_activity("Replaying memories...")
|
||||
await self.set_activity("the past...")
|
||||
self.trainer.dream()
|
||||
|
||||
await self.set_activity("Daydreaming...")
|
||||
await self.set_activity("my thoughts")
|
||||
from random import random
|
||||
speak = random() < 0.5
|
||||
thought = self.trainer.daydream(say_thought=speak)
|
||||
|
Loading…
x
Reference in New Issue
Block a user