deepbot

package module
v0.0.0-...-0b2e973 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: AGPL-3.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Deepbot

A simple chat bot that use OneBot + DeepSeek.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMessage

type ChatMessage = deepseek.ChatCompletionMessage

type ChatRequest

type ChatRequest = deepseek.ChatCompletionRequest

type ChatResponse

type ChatResponse = deepseek.ChatCompletionResponse

type Config

type Config struct {
	GroupID []int64 `toml:"group_id"`
	BlockID []int64 `toml:"block_id"`

	DeepSeek struct {
		APIKey  string `toml:"api_key"`
		BaseURL string `toml:"base_url"`
		Timeout int    `toml:"timeout"`
	} `toml:"deepseek"`

	OneBot struct {
		WSClient struct {
			Enabled bool   `toml:"enabled"`
			URL     string `toml:"url"`
			Token   string `toml:"token"`
		} `toml:"ws_client"`

		WSServer struct {
			Enabled bool   `toml:"enabled"`
			URL     string `toml:"url"`
			Token   string `toml:"token"`
		} `toml:"ws_server"`
	} `toml:"onebot"`

	Chromedp struct {
		ExecPath string `toml:"exec_path"`
		ProxyURL string `toml:"proxy_url"`
	} `toml:"chromedp"`

	Renderer struct {
		Enabled bool  `toml:"enabled"`
		Width   int64 `toml:"width"`
		Height  int64 `toml:"height"`
		Timeout int   `toml:"timeout"`
	} `toml:"renderer"`

	Emoticon struct {
		Enabled bool `toml:"enabled"`
		Rate    int  `toml:"rate"`
	} `toml:"emoticon"`

	SDWebUI struct {
		Enabled bool   `toml:"enabled"`
		URL     string `toml:"url"`
		Timeout int    `toml:"timeout"`
		Config  string `toml:"config"`
	} `toml:"sd_webui"`

	Memory struct {
		Enabled bool `toml:"enabled"`
	} `toml:"memory"`

	SearchAPI struct {
		Enabled  bool   `toml:"enabled"`
		EngineID string `toml:"engine_id"`
		APIKey   string `toml:"api_key"`
		ProxyURL string `toml:"proxy_url"`
		Timeout  int    `toml:"timeout"`
	} `toml:"search_api"`

	Browser struct {
		Enabled bool `toml:"enabled"`
		Timeout int  `toml:"timeout"`
	} `toml:"browser"`

	EvalGo struct {
		Enabled bool `toml:"enabled"`
		Timeout int  `toml:"timeout"`
	} `toml:"eval_go"`
}

type DeepBot

type DeepBot struct {
	// contains filtered or unexported fields
}

func NewDeepBot

func NewDeepBot(config *Config) *DeepBot

func (*DeepBot) Run

func (bot *DeepBot) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址