All Projects → b11p → Osuqqbotfornewbiegroup

b11p / Osuqqbotfornewbiegroup

Licence: agpl-3.0
为osu!新人群开发的QQ Bot,在其他群也可以使用一些基本功能。

Labels

Projects that are alternatives of or similar to Osuqqbotfornewbiegroup

hellsnakebot
🤖About A fully customizable bot built with discord.js
Stars: ✭ 14 (-51.72%)
Mutual labels:  osu
CSharpOsu
C# library for osu!api
Stars: ✭ 15 (-48.28%)
Mutual labels:  osu
Opsu
opsu! ~ an open-source osu! client
Stars: ✭ 617 (+2027.59%)
Mutual labels:  osu
osu.nix
DEPRECATED osu! on Nix
Stars: ✭ 13 (-55.17%)
Mutual labels:  osu
guweb
The frontend appearance for the osu! server protocol, gulag! 🧶
Stars: ✭ 20 (-31.03%)
Mutual labels:  osu
oshu
Fast osu! port for Linux (and more)
Stars: ✭ 106 (+265.52%)
Mutual labels:  osu
osu-macOS-Agent
osu!macOS Agent - An auxiliary troubleshooting tool for osu!
Stars: ✭ 36 (+24.14%)
Mutual labels:  osu
Osu Hope
osu!HOPE: HoLLy's osu! Packet Editor
Stars: ✭ 18 (-37.93%)
Mutual labels:  osu
bancho.js
Interface with Bancho over IRC, made easy and reliable.
Stars: ✭ 47 (+62.07%)
Mutual labels:  osu
Osu Web
the browser-facing portion of osu!
Stars: ✭ 610 (+2003.45%)
Mutual labels:  osu
Osuplay
リズムゲーム「osu!」の譜面に使用されている楽曲を一覧表示して、再生できるソフトウェアです。
Stars: ✭ 19 (-34.48%)
Mutual labels:  osu
plumeria
🤖 A Discord chat bot with rich data piping between commands
Stars: ✭ 35 (+20.69%)
Mutual labels:  osu
Tillerinobot
Stars: ✭ 254 (+775.86%)
Mutual labels:  osu
IngameOverlay
Overlay in-game
Stars: ✭ 21 (-27.59%)
Mutual labels:  osu
Osu Framework
A game framework written with osu! in mind.
Stars: ✭ 692 (+2286.21%)
Mutual labels:  osu
mappool-generator
A Mappool Generator for osu! Tournament Livestreams
Stars: ✭ 20 (-31.03%)
Mutual labels:  osu
osu-playground
osu!Playground
Stars: ✭ 21 (-27.59%)
Mutual labels:  osu
Tabletdriver
TabletDriver Download: http://hwk.fi/TabletDriver/TabletDriverV0.2.3.zip
Stars: ✭ 936 (+3127.59%)
Mutual labels:  osu
Osu
rhythm is just a *click* away!
Stars: ✭ 8,573 (+29462.07%)
Mutual labels:  osu
Webosu
➤⓵ web rhythm game (unofficial osu!) http://osugame.online/
Stars: ✭ 434 (+1396.55%)
Mutual labels:  osu

osu! 新人群 Bot

为 osu! 新人群提供各种功能服务,在其他群也可以使用一些基本的功能。

环境及依赖 (Prerequisites)

  • Ubuntu 18.04 / Docker

  • .NET 5.0 (Required)

  • go-cqhttp

  • MySQL / MariaDB (Required)

  • Chromium-based browser (Recommended)

服务器准备 (Server Environments)

  1. 运行好 go-cqhttp,检查并修改生成的配置文件,确保你理解并正确配置好 http_config 部分。
  2. 安装运行好 MySQL,确保可以连接,预留好要使用的数据库名,不要手动创建该数据库。
  3. 安装好 .NET 5.0 Runtime。
  4. (Optional, recommended) 安装一个 Chromium 内核浏览器。

本地准备 (Development Environments)

开发环境

  1. 安装最新版本的 Visual Studio,确保选中 “.NET Core 跨平台开发”。
  2. 运行以下命令
dotnet tool install --global dotnet-ef

克隆

  1. 克隆本 repo 和 Sisters.WudiLib

  2. 移动文件位置,保证 OsuQqBotHttp.slnSisters.WudiLib.sln 按下列规则放置

    ./OsuQqBotHttp.sln

    ../Sisters.WudiLib/Sisters.WudiLib.sln

补充缺失文件

  1. 使用 Visual Studio 打开 OsuQqBotHttp.sln,在 Bleatingsheep.OsuQqBot.Database/Models 目录创建 ServerInfo.cs 文件,内容如下。
namespace Bleatingsheep.OsuQqBot.Database.Models
{
    internal class ServerInfo
    {
        public const string Server = "database.server.address";
        public const int Port = 12345;
        public const string Database = "database-name";
        public const string User = "your-database-user";
        public const string Password = "your-database-password";
    }
}
  1. Bleatingsheep.NewHydrant.Bot 项目创建 HardcodedConfigure.cs 文件,内容如下。
using System;

namespace Bleatingsheep.NewHydrant
{
    public sealed class HardcodedConfigure
    {
        public string ApiKey => "your-osu-api-key"; // osu! API key

        public long SuperAdmin => 123456789; // 你的 QQ 账号(非机器人账号)

        public string Listen => "http://+:8876"; // 与 go-cqhttp 配置中 `http_config.post_urls` 部分对应
        public string ApiAddress => "http://cq:5700"; // 与 go-cqhttp 配置中 `http_config.host` 和 `http_config.host.port` 字段对应。
        public string AccessToken => "your-access-token"; // 与 go-cqhttp 配置中 `access_token` 字段对应
        public string Secret => "your-secret"; // 与 go-cqhttp 配置中 `secret` 部分对应
    }
}

参考

go-cqhttp 的配置文件

  1. (Optional) 修改 Bleatingsheep.NewHydrant.Bot/啥玩意儿啊/Chrome.cs 文件,将 ExecutablePath 改为 Chromium 内核浏览器的可执行文件位置。如果未正确设置,部分功能可能无法使用。

  2. 如果 MySQL 服务器未正确配置好 SSL 证书(会验证 CA 及域名是否匹配),在 Bleatingsheep.OsuQqBot.Database/Models/NewbieContext.cs 文件中删去 SslMode=VerifyCA;

  3. 尝试编译Bleatingsheep.NewHydrant.Bot项目,根据提示消除编译错误

  4. 到这步还没完,先不要运行。

创建数据库

打开 Powershell,在 Bleatingsheep.OsuQqBot.Database 目录运行

dotnet ef migrations script

检查将要运行的 SQL 脚本,确认后运行

dotnet ef database update

创建数据库。

编译 (Compilation)

  1. 右键单击 Bleatingsheep.NewHydrant.Bot 项目,点“发布”。
  2. 目标选“文件夹”,然后选择合适的文件夹。
  3. 发布后,把该文件夹的文件全部复制到服务器上。

运行 (Run)

在服务器上打开 Powershell(或 bash 等任何 shell),运行

dotnet Bleatingsheep.NewHydrant.Bot.dll
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].