A mirai chatbot plugin based on OpenAI GPT-3 API

Overview

Mirai OpenAI GPT-3 ChatBot Plugin

This is a Mirai ChatBot plugin based on OpenAI GPT-3 API.

chatbot

Installation

  1. Download the JAR file from https://github.com/RIvance/mirai-openai-gpt-chatbot/releases

  2. Copy the JAR file to $MCL_ROOT/plugins

  3. Start MCL

  4. Replace YOUR_OPENAI_API_KEY_HERE in the $MCL_ROOT/config/org.ivance.chatbot/ChatBotPluginConfig.yml config file with your OpenAI API key, like:

    # Your OpenAI API key, starts with `sk-`.
    # See https://beta.openai.com/account/api-keys
    token: sk-kA6y0qWzk6lFEq7SVTr7bpHoduNI9bheqUNkbQm7ZJjG39BA
  5. Add the trigger prefixes / trigger keywords to the triggerPrefixes / triggerWords list, for example:

    # Prefixes used to trigger the response.
    # e.g. "/chat How are you today?"
    triggerPrefixes: 
      - '/chat'
      - '/聊天'
    # Keywords used to trigger the response.
    # e.g. "What is GPT3?"
    triggerWords: 
      - 'what is'
      - 'how to'
      - '为什么'
      - '怎样'
  6. Restart MCL

Q & A

How to register an OpenAI account in China?

See https://zhuanlan.zhihu.com/p/589287744

How to get an OpenAI API Key?

Visit https://beta.openai.com/account/api-keys

Why is the reply incomplete?

Please change the maxToken attribute in the config file:

# The maximum number of tokens to generate.
# Requests can use up to 2048 tokens shared between prompt and completion.
# (One token is roughly 4 characters for normal English text)
# Notice that a large `maxToken` value may cause request timeout.
maxTokens: 500
You might also like...
Mirai-device-generator - Mirai Device Generator with kotlin

Mirai Device Generator Mirai DeviceInfo 生成器 作为插件运行时会提供 BotConfigurationAlterer 服

A Social Media Application with a Chatbot.
A Social Media Application with a Chatbot.

Acro Chat A Social Media Android app build in using Features- Posts, Chat with Users, Profile Page, Chat bot Preview Home Page Messages Chat Bot Licen

A Mirai console plugin that can provide osu!std players some appropriate beatmap (WIP)
A Mirai console plugin that can provide osu!std players some appropriate beatmap (WIP)

OsuMapSuggester A mirai-console plugin that can provide osu!std players some appropriate beatmap. (WIP) Features It can analyze player's aim, speed an

McMotd - Mirai Plugin for fetching motd from minecraft servers

Mirai-wiki 基于mirai的Minecraft服务器信息查询插件 关于Linux运行环境 如果你正在使用Linux而不是Windows来运行Mirai

A Mirai-Console Plugin

MuteGames 一个以 Mirai-Console 为基础开发并为了满足群友PVP需求和抖M需求开发的禁言游戏集合 开始使用 插件需要以 Mirai-Console 为基础,你可以下载 MCL 作为你的Mirai插件载入器 与此同时,本插件需要 Mirai 官方插件 chat-command 使

A QQ bot based on Mirai.

Chii A QQ bot based on Mirai. 个人使用, 仅供娱乐. Building from Source $ git clone https://github.com/MaxXSoft/Chii.git $ cd Chii $ gradle run License Copyri

Based on mirai, a fast simple bot for maimai DX

maimai-bot 一个基于 mirai 和 舞萌 DX 查分器 编写的 maimai DX QQ 机器人插件。

mirai-console 插件开发计划

Debug Helper 基于 Mirai Console 的RSS订阅插件 机器人会在触发上线事件后向群聊发送上线卡片消息 有好友申请和加群申请时,会记录事件信息,并联系机器人所有者 指令 注意: 使用前请确保可以 在聊天环境执行指令 ...中的是指令名,由空格隔开表示或,选择其中任一名称都可

一个简单的每日新闻速报/动画速报 mirai-console 插件
一个简单的每日新闻速报/动画速报 mirai-console 插件

Mirai News Reporter 一个简单的每日新闻速报/番剧速报 mirai-console 插件 项目地址: https://github.com/LinHeLurking/mirai-news-reporter 功能 爬取知乎的一个每日新闻页面, 以图片形式分享. 向机器人说 "今日新闻

Android Application that plays music through a Spotify API based on a user's current location found through Google Maps API and also checking Google Weather API.

GeoStereo Android Application that plays music through a Spotify API based on a user's current location found through Google Maps API and also checkin

K6-intellij-plugin - IntelliJ-based Plugin to run k6 tests locally or in the k6 Cloud from your IntelliJ IDE
K6-intellij-plugin - IntelliJ-based Plugin to run k6 tests locally or in the k6 Cloud from your IntelliJ IDE

IntelliJ-based Plugin to run k6 tests locally or in the k6 Cloud from your Intel

A Gradle plugin that generates plugin.yml for Bukkit/BungeeCord/Nukkit plugins based on the Gradle project

plugin-yml is a simple Gradle plugin that generates the plugin.yml plugin description file for Bukkit plugins, bungee.yml for Bungee plugins or nukkit.yml for Nukkit plugins based on the Gradle project. Various properties are set automatically (e.g. project name, version or description) and additional properties can be added using a simple DSL.

EduApp is a mini e-learning platform based on udemy's public api. It has 4 main navigation destinations (Home, Search, Wishlist, Cart). Users can search courses from different categories and get real-time results from the api using Chips for a smooth filtering experience. It has different theme for dark mode.
gradle-android-scala-plugin adds scala language support to official gradle android plugin

gradle-android-scala-plugin gradle-android-scala-plugin adds scala language support to official gradle android plugin. See also sample projects at htt

eventbus-intellij-plugin 3.8 0.0 L1 Java Plugin to navigate between events posted by EventBus.
eventbus-intellij-plugin 3.8 0.0 L1 Java Plugin to navigate between events posted by EventBus.

eventbus-intellij-plugin Plugin to navigate between events posted by EventBus. Post to onEvent and onEvent to Post Install There are two ways. Prefere

A simple plugin to patch the memory leak in Kotlin Gradle Plugin 1.5.0

kgp-150-leak-patcher A simple plugin to automatically patch the memory leak in Kotlin Gradle Plugin 1.5.0 in https://youtrack.jetbrains.com/issue/KT-4

IntelliJ Idea Astor Plugin is a plugin that integrates Astor in Intellij Idea

IntelliJ Idea Astor Plugin IntelliJ Idea Astor Plugin is a plugin that integrates Astor in Intellij Idea. It communicates with a local/remote program

Gradle Plugin that allows you to decompile bytecode compiled with Jetpack Compose Compiler Plugin into Java and check it

decomposer Gradle Plugin that allows you to decompile bytecode compiled with Jetpack Compose Compiler Plugin into Java and check it How to use Run bui

Gradle plugin to ease Kotlin IR plugin development and usage in multimodule gradle projects

Gradle plugin to ease Kotlin IR plugin development and usage in multimodule gradle projects. Former: kotlin-ir-plugin-adapter-gradle

Releases(v0.2)
Owner
std::_Rb_tree
std::_Rb_tree
Email-based instant messaging for Android.

Delta Chat Android Client This is the Android client for Delta Chat. It is available on F-Droid and the Google Play Store. The APK can also be downloa

Delta Chat 897 Jan 2, 2023
NekoX is an free and open source third-party Telegram client, based on Telegram-FOSS with features added.

NekoX NekoX is an free and open source third-party Telegram client, based on Telegram-FOSS with features added. We are no longer able to update versio

NekoX Dev 3.4k Dec 29, 2022
Telegram bot provides time-based currency

Timecobot Telegram bot provides time-based currency. The accumulated time can be used to block another user. There are no discriminatory rules, admini

Daniel Demidko 21 Jul 14, 2022
A hybrid chat android application based on the features of Instagram and Whatsapp having UI just as Telegram.

A hybrid chat android application based on the features of Instagram and Whatsapp having UI just as Telegram.

Ratik Tiwari 1 May 22, 2022
💙 Android sample Avengers chat application using Stream Chat SDK based on MVVM (ViewModel, Coroutines, Room, Hilt, Repository) architecture.

Avengers Chat AvengersChat is a demo application based on modern Android tech stacks and Stream Chat SDK. Previews Download Go to the Releases to down

Jaewoong Eum 352 Dec 25, 2022
AvengersChat is a demo application based on modern Android tech stacks and Stream Chat SDK.

?? Android sample Avengers chat application using Stream Chat SDK based on MVVM (ViewModel, Coroutines, Room, Hilt, Repository) architecture.

Stream 352 Dec 25, 2022
Telegram client based on official Android sources

Telegram messenger for Android Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. This repo contains the

Dmitry Kotov 12 Dec 25, 2022
Messaging API: Connect to PostgreSQL and Kafka to obtain and manage cars inventory

Messaging-API In this simple API, we connect to PostgreSQL and Kafka to obtain a

Kevork 0 Feb 18, 2022
A simple video calling application uses Firebase database and WebRTC API that enables you Peer-to-Peer Full-HD video and audio connection.

A simple video calling application uses Firebase database and WebRTC API that enables you Peer-to-Peer Full-HD video and audio connection.

Indrajit Sahu 10 Sep 27, 2022
Android app to search for artists, albums or tracks and get a list of related songs using the iTunes Searcher API.

iTunes Searcher Android app to search for artists, albums or tracks and get a list of related songs using the iTunes Searcher API. Each song may be cl

Miguel Freitas 2 Oct 19, 2022