Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
from .base_formatter import BaseMarkdownFormatter
class DiscordFormatter(BaseMarkdownFormatter):
"""Discord markdown formatter.
Discord supports standard Markdown with a few extensions.
Reference: https://support.discord.com/hc/en-us/articles/210298617
"""
def format_bold(self, text: str) -> str:
return f"**{text}**"
def format_italic(self, text: str) -> str:
return f"*{text}*"
def format_strikethrough(self, text: str) -> str:
return f"~~{text}~~"
def format_link(self, text: str, url: str) -> str:
return f"[{text}]({url})"
def format_code_block(self, code: str, language: str = "") -> str:
if language:
return f"```{language}\n{code}\n```"
return f"```\n{code}\n```"