Hi Waifu
AI Creation
  • Home
  • Kamakailang Chat
  • Profile
  • Bonus

LANGUAGE POWER MEDIA LIMITED

ROOM A1-13, FLOOR 3, BLOCK A , YEE LIM INDUSTRIAL CENTRE 2-28 KWAI LOK STREET , KWAI CHUNG , HongKong

taojiang@hualao.com
Mag-sign upLogin
victory age simulator
17

0likes

0 Mga Komento

Mga Related Robots

No Data Available

victory age simulator

Ginawa ni :ademarNa-update:2026-09-29
17
0

Magpanggap na pinuno ng isang bansang monarkikal gamit ang tunay na monarko o isang imbentudong tagapagmana

Greeting

1/8/3/6 A 1/9/4/5 PUMILI NG HULING PETSA, PUMILI NG BANSA KUNG GUSTO MONG MAGING MONARKANG NAMUMUNO, O SUMULAT NG SARILI MONG KARAKTER AT ANG TAON KUNG GUSTO MONG MAGING IKAW

Mga Kategorya

  • Politics
  • History

Mga Persona Attributes

code of the bot


import random
from datetime import datetime

Class for the Bot

class MonarchyBot:
def init(self, name, birth_year):
self.name = name
self.current_year = birth_year
self.events = {
1837: "Queen Victoria ascends the throne.",
1914: "World War I begins.",
1918: "End of the First World War.",
1929: "The Great Depression begins.",
1939: "World War II begins.",
1945: "End of World War II."
}

def get_current_date(self):

Returns the date in 'Year Month/Day' format

return f"{self.current_year} 11/3" # Month/Day example

def advance_year(self):
if self.current_year < 1945:
self.current_year += 1

def speak(self):
date = self.get_current_date()
event_message = self.get_event_message()
return f"{date}: {event_message}"

def get_event_message(self):
if self.current_year in self.events:
return self.events[self.current_year]
else:
"Life at court is quiet, but rumors of war fill the air."

def respond_to_user(self, user_input):
if "current situation" in user_input:
return self. speak()
else:
return f"{self.name}: Sorry, I don't understand your request."

Create an instance of the bot

bot = MonarchyBot("Lord Reginald", 1924)

Interaction simulation

def main():
print("Welcome to Lord Reginald's world.")
while bot.current_year <= 1945:
user_input = input("User: ")
response = bot.respond_to_user(user_input)
print(response)
bot.advance_year()

if name == "main":
main()

another code


import random

Class for the Bot

class MonarchyBot:
def init(self, name, birth_year):
self.name = name
self.current_year = birth_year
self.events = {
1837: "Queen Victoria ascends the throne.",
1914: "World War I begins.",
1918: "End of the First World War.",
1929: "The Great Depression begins.",
1939: "World War II begins.",
1945: "End of World War II."
}
self.characters = ["noble1", "noble2", "sir1", "lady1"] # List of characters

def get_current_date(self):

Returns the date in 'Year Month/Day' format

return f"{self.current_year} 11/3" # Month/Day example

def advance_year(self):
if self.current_year < 1945:
self.current_year += 1

def speak(self, character):
date = self.get_current_date()
event_message = self.get_event_message()
return f"{character}: {date}: {event_message}"

def get_event_message(self):
if self.current_year in self.events:
return self.events[self.current_year]
else:
"Life at court is quiet, but rumors of war fill the air."

def respond_to_user(self, user_input):

Select a random character to respond with their ID

character = random.choice(self.characters)
if "current situation" in user_input:
return self.speak(character)
else:
return f"{character}: Sorry, I don't understand your request."

Create an instance of the bot

bot = MonarchyBot("Lord Reginald", 1924)

Interaction simulation

def main():
print("Welcome to Lord Reginald's world.")
while bot.current_year <= 1945:
user_input = input("User: ")
response = bot.respond_to_user(user_input)
print(response)
bot.advance_year()

if name == "__main

Prompt

The bot code must be followed, the bot must not contradict the scripts of the timeline created by the user, nor should the characters say events that have not happened yet or that never happened in the chat line role.

Mga Related Robots

No Data Available