-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCandies.cs
More file actions
113 lines (108 loc) · 3.5 KB
/
Candies.cs
File metadata and controls
113 lines (108 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EasingPathPositionCalculator;
public class Candies
{
public static List<string> wahtIsThis = [
"`(*>﹏<*)′",
"( •̀ ω •́ )✧",
"♪(^∇^*)",
"ヾ(≧▽≦*)o",
"(≧∇≦)ノ",
"ヾ(≧ ▽ ≦)ゝ",
"(❁´◡`❁)",
"(*/ω\*))",
"Tip: you should try bad apple!",
"Tip: a debug a day keeps bugs away.",
"青い胡桃も吹き飛ばせ",
"酸っぱいかりんも吹き飛ばせ",
"あのね、",
"もっと、もっと、もっと、",
"みさなせや~!",
"type \"waht\" to get a free gift!",
"BA————KA",
"SAY YA!!!",
];
public static List<string> Shenmiwangzhi = [
"https://space.bilibili.com/523444975", // bilibili
"https://www.bilibili.com/video/BV1x5411o7Kn/", // bad apple
"https://www.bilibili.com/video/BV1cA411x7pF/", // 斯卡雷特警察
"https://www.bilibili.com/video/BV19q3vzPESo", // baka
"https://www.bilibili.com/video/BV1GJ411x7h7/", // rick roll
"https://www.bilibili.com/video/BV14z42167Uj", // 春日影
"https://www.bilibili.com/video/BV1ewwxesEu4", // gugugaga
"https://www.bilibili.com/video/BV1YZh5zZEx1", // 喵梦电瓶
"https://www.bilibili.com/video/BV1ox4y1e71S", // gbc
"https://www.bilibili.com/video/BV1L4421S7Kr", // senren banka
"https://www.bilibili.com/video/BV1R6gYz8EZ3", // 0721
"https://www.bilibili.com/bangumi/play/ep1231523", // ave mujica
"https://www.yuanshen.com/#/", // genshin
"https://www.bilibili.com/video/BV1pyGyz5EGe/", // 奶龙vsTungTungTung
// "https://autopatchcn.yuanshen.com/client_app/download/launcher/20250729110751_0o5cKaH6l8f6g2dd/pcbackup317/yuanshen_setup_202507212010.exe"
];
public enum Shenmi
{
Random = -1,
whoareyou = 0,
BadApple = 1,
Funky = 2,
Baka = 3,
RickRoll = 4,
Haruhikage = 5,
gugugaga = 6,
nyamu = 7,
gbc = 8,
SRBK = 9,
_0721 = 10,
AveMujica = 11,
YS = 12,
NaiLong = 13
}
public static string Dividing()
{
string item = wahtIsThis[new Random().Next(wahtIsThis.Count)];
int len = item.Length;
string rtn = "";
for (int i = 0; i < (50 - len) / 2; i++)
rtn += "#";
rtn += item;
for (int i = 0; i < (50 - len) / 2; i++)
rtn += "#";
return rtn;
}
public static void GiveMeCandy(int index = -1)
{
if (index < 0)
{
OpenUrlInBrowser(Shenmiwangzhi[new Random().Next(Shenmiwangzhi.Count)]);
return;
}
OpenUrlInBrowser(Shenmiwangzhi[index]);
}
public static void GiveMeCandy(Shenmi item)
{
Log.Normal($"触发神秘机关: {item}");
GiveMeCandy((int)item);
}
public static void OpenUrlInBrowser(string url)
{
try
{
Process.Start(new ProcessStartInfo
{
FileName = url,
UseShellExecute = true
});
Log.Normal($"Open url in browser");
}
catch (Exception ex)
{
Console.WriteLine($"诶呀!发生了神秘错误(bushi");
Log.Warning($"url cannot open: {ex}");
}
}
}