wirehack7 ed3cd1df57
All checks were successful
Safety Check / safety-check (push) Successful in -4s
Code Quality Check / quality-check (push) Successful in 14s
Build and Push Docker Image / build (push) Successful in -10s
Merge pull request 'Created README' (#8) from dev into main
Reviewed-on: #8
2025-05-01 15:09:18 +02:00
2025-05-01 14:24:38 +02:00
2025-05-01 14:56:12 +02:00
2025-05-01 10:41:01 +02:00
2025-05-01 15:09:40 +02:00

NovelAI Discord Bot

Code Quality Safety Check Release

Simple bot which registers a command to generate images via the NovelAI API.

Usage

Just enter /generate in the desired channel.

/generate 
    *prompt: string
    undesired_prompt: string
    orientation: landscape or portrait
    seed: integer

*: required

Run

You might create environvent vars:

  • NOVELAI_API_TOKEN: your NovelAI user API key
  • DISCORD_BOT_TOKEN: token of your Discord bot
  • DISCORD_CHANNEL_ID: ID of the channel to enable this bot

Don't forget to install the requirements in requirements.txt

Docker Compose

Or simply run it via docker-compose:

services:
  bot:
    restart: unless-stopped
    image: git.0day.agency/wirehack7/novelai-bot:latest
    environment:
      - NOVELAI_API_TOKEN=
      - DISCORD_BOT_TOKEN=
      - DISCORD_CHANNEL_ID=
networks: {}

Notes

To create a Discord bot go to Discord Developers. You should make the bot private.

Description
No description provided
Readme 130 KiB
Languages
Python 96.6%
Dockerfile 3.4%