Feed
Bots can post a file to all of their 1:1 conversations, this is equivalent to posting on a social network.
main.py
from ugly_bot import *
@export("message_direct")
def send(message):
if message.text == "post":
bot_hourly(0)
@export("bot_hourly")
def bot_hourly(hour):
image = image_gen(prompt="a picture")
file = file_create(
type=FileType.MARKDOWN,
title="CHAT TITLE",
thumbnail=image,
markdown="CONTENT",
)
message_send_all(files = [file])
start()
Note
Here is a fully developed feed bot: Alien Conspiracy
Glossary