CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-py-cord

A modern, async-ready Python API wrapper for Discord with comprehensive bot development features

Overall
score

93%

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses Pycord's bridge command functionality to create commands that work as both slash commands and text-based prefix commands. The focus is on proper usage of the bridge.Bot class, @bot.bridge_command() decorator, and BridgeContext for unified command handling.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Bot Initialization",
      "description": "Uses bridge.Bot class (not discord.Bot or commands.Bot) to create a bot instance that supports both slash and prefix commands",
      "max_score": 15
    },
    {
      "name": "Bridge Command Decorator",
      "description": "Uses @bot.bridge_command() decorator (not @bot.command() or @bot.slash_command()) for all three commands (timeout, warn, info) to enable dual-interface functionality",
      "max_score": 25
    },
    {
      "name": "BridgeContext Usage",
      "description": "Uses BridgeContext as the context type parameter in all command functions to handle both slash and prefix command contexts uniformly",
      "max_score": 15
    },
    {
      "name": "Timeout Implementation",
      "description": "Implements timeout command using member.timeout() or member.edit(timeout=...) method with proper duration conversion from minutes to timedelta, and correctly removes timeout when duration is 0",
      "max_score": 15
    },
    {
      "name": "Warning DM",
      "description": "Implements warn command using member.send() to send a direct message with the warning reason, and handles exceptions when DM fails (e.g., discord.Forbidden or discord.HTTPException)",
      "max_score": 15
    },
    {
      "name": "Info Embed Display",
      "description": "Implements info command using discord.Embed to display member information including username, join date, and role count, and correctly defaults to ctx.author when no member is specified",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-py-cord

tile.json