Skip to content
Chris Haycock edited this page Jun 28, 2025 · 2 revisions

Aszune AI Bot Documentation

Welcome to the Aszune AI Bot Wiki! This documentation provides detailed information about setup, usage, and development of the Aszune AI Bot.

What is Aszune AI Bot?

Aszune AI Bot is a Discord bot designed to provide gaming lore, game logic, guides, and advice using the Perplexity API with the sonar model. It maintains a short conversation history for each user and adds fun emoji reactions based on keywords found in messages. The bot supports both traditional ! commands and modern Discord slash commands.

Navigation

Features

  • πŸ€– Chat Completions: Uses Perplexity API's chat/completions endpoint with the sonar model
  • 🧠 Context Awareness: Remembers recent user messages with a configurable history length
  • πŸ” Command Support: Users can clear their history at any time
  • πŸ˜„ Emoji Reactions: Adds reactions based on keywords like "hello", "funny", "love", etc
  • πŸ”’ Secure Configuration: .env based token and key management
  • πŸ•’ Rate Limiting: Prevents users from spamming the bot
  • πŸ“ Help Command: Lists all available commands and usage
  • 🧾 Conversation Summary: Generates summaries of conversations
  • πŸ“ Text Summarisation: Summarizes any provided text using UK English
  • πŸ‡¬πŸ‡§ UK English Responses: All bot replies use UK English spelling and phrasing
  • πŸ—‚οΈ Improved Performance: Uses JavaScript Map for conversation history and rate limiting
  • πŸ› οΈ Cleaner Codebase: Refactored command handling for easier maintenance
  • πŸ†• Stats Tracking: Shows per-user message and summary counts
  • πŸ†• Slash Command Support: All major commands available as Discord slash commands

Clone this wiki locally