├── SharpBot_Test
├── Usings.cs
├── config
│ └── config.yaml
├── appsettings.json
├── ProcessTest.cs
├── App.cs
└── SharpBot_Test.csproj
├── SharpBot
├── src
│ ├── Config
│ │ ├── ConfigAttribute.cs
│ │ ├── ConfigImpement
│ │ │ ├── TelegramConfig.cs
│ │ │ └── BaiduConfig.cs
│ │ ├── MotionConfig.cs
│ │ └── Config.cs
│ ├── DB
│ │ ├── IDB.cs
│ │ ├── BaseDB.cs
│ │ ├── DBServer.cs
│ │ └── Baidu
│ │ │ └── BaiduDB.cs
│ ├── ExtentFunction
│ │ ├── TorrentExtension.cs
│ │ ├── ActionExtension.cs
│ │ ├── AppExt.cs
│ │ ├── DelegateExtension.cs
│ │ ├── DictionaryExtension.cs
│ │ ├── EncodingExtension.cs
│ │ ├── CollectionExtension.cs
│ │ └── ReflectExtension.cs
│ ├── Singlonton
│ │ ├── SingaltonAttribute.cs
│ │ ├── SingaltonInstance.cs
│ │ └── ISingalton.cs
│ ├── Api
│ │ └── v1
│ │ │ └── ConfigController.cs
│ ├── Log
│ │ └── Log.cs
│ ├── Bot
│ │ └── TelegramBot.cs
│ ├── IOC
│ │ └── SinglontonAttribute.cs
│ ├── BotPlugin
│ │ └── Baidu
│ │ │ ├── Baidu.cs
│ │ │ └── BaiduClient.cs
│ └── StringTools
│ │ └── StringTools.cs
├── config
│ └── config.yaml
├── .dockerignore
├── appsettings.json
├── Dockerfile
├── Properties
│ └── launchSettings.json
├── Program.cs
└── SharpBot.csproj
├── global.json
├── .gitignore
├── .idea
├── .idea.SharpBot
│ └── .idea
│ │ ├── encodings.xml
│ │ ├── vcs.xml
│ │ ├── indexLayout.xml
│ │ └── .gitignore
└── .idea.Bangumi
│ └── .idea
│ └── workspace.xml
├── LICENSE
├── SharpBot.sln
├── README.md
├── .github
└── workflows
│ └── docker-push.yml
└── SharpBot.sln.DotSettings.user
/SharpBot_Test/Usings.cs:
--------------------------------------------------------------------------------
1 | global using NUnit.Framework;
--------------------------------------------------------------------------------
/SharpBot/src/Config/ConfigAttribute.cs:
--------------------------------------------------------------------------------
1 | namespace SharpBot;
2 |
3 | public class ConfigAttribute : Attribute
4 | {
5 | }
--------------------------------------------------------------------------------
/global.json:
--------------------------------------------------------------------------------
1 | {
2 | "sdk": {
3 | "version": "7.0.0",
4 | "rollForward": "latestMajor",
5 | "allowPrerelease": true
6 | }
7 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | bin/
2 | obj/
3 | /packages/
4 | riderModule.iml
5 | /_ReSharper.Caches/
6 | /SharpBot/config/meta.db
7 | /SharpBot_Test/config/meta.db
8 | /SharpBot/logs/
--------------------------------------------------------------------------------
/SharpBot/config/config.yaml:
--------------------------------------------------------------------------------
1 | BaiduConfig:
2 | ClientID: ''
3 | ClientSecret: ''
4 | DownloadPath: ''
5 | TelegramConfig:
6 | BotToken: ''
7 | ChatID: ''
8 | TransFinishAddtionDesc: ''
9 |
--------------------------------------------------------------------------------
/.idea/.idea.SharpBot/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SharpBot_Test/config/config.yaml:
--------------------------------------------------------------------------------
1 | BaiduConfig:
2 | ClientID: ''
3 | ClientSecret: ''
4 | DownloadPath: /SharpBot
5 | TelegramConfig:
6 | BotToken: ''
7 | ChatID: ''
8 | TransFinishAddtionDesc: 到alist查看转存结果
9 |
--------------------------------------------------------------------------------
/.idea/.idea.SharpBot/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/SharpBot/src/DB/IDB.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json;
2 |
3 | namespace SharpBot.DB;
4 |
5 | public interface IDB
6 | {
7 | string DBName { get; }
8 | List