Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
Write me a skeleton discord bot in python using discord.py
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
Write me a skeleton discord bot in python using discord.py
- Assistant
Okay! Here is the skeleton of your discord bot, using Python. Please note that Discord requires an API token for your bot, you can get it on the Discord Developer Portal.
import discord from discord.ext import commands bot = commands.Bot(command_prefix='!') @bot.event async def on_ready(): print(f'{bot.user.name} has connected to Discord!') @bot.command() async def hello(ctx): await ctx.send('Hello!') bot.run('YOUR_TOKEN_HERE') - User
How should I store my API token? It's a bad idea to hardcode in the code.
- Assistant
You can use system environment variables! You can set them up in system settings and then get their values using
import os some_data = os.environ["YOUR_DATA_ENV_VARIABLE"]You can then use them for storing sensitive data, like API keys or access tokens. The set-up method may vary for different platforms and systems.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →