diff --git a/Features.cs b/Features.cs
index 528ebe3..a981692 100644
--- a/Features.cs
+++ b/Features.cs
@@ -18,6 +18,12 @@ namespace silverworker_discord
public static Random r = new Random();
public static async void detiktokify(Uri link, SocketUserMessage message)
{
+ //yes, even if there is a problem later.
+ #pragma warning disable 4014
+ message.AddReactionAsync(Emote.Parse("<:tiktok:1070038619584200884>"));
+ #pragma warning restore 4014
+
+
var ytdl = new YoutubeDLSharp.YoutubeDL();
ytdl.YoutubeDLPath = "yt-dlp";
ytdl.FFmpegPath = "ffmpeg";
@@ -33,7 +39,7 @@ namespace silverworker_discord
await message.Channel.SendMessageAsync("tried to dl, failed. \n" + string.Join('\n', res.ErrorOutput));
}
else
- {
+ {
string path = res.Data;
if (File.Exists(path))
{
@@ -147,7 +153,7 @@ namespace silverworker_discord
}
public static async void Joke(SocketUserMessage message)
{
- var jokes = File.ReadAllLines("jokes.txt");
+ var jokes = File.ReadAllLines("assets/jokes.txt");
jokes = jokes.Where(l => !string.IsNullOrWhiteSpace(l))?.ToArray();
if(jokes?.Length == 0){
await message.Channel.SendMessageAsync("I don't know any. Adam!");
@@ -183,13 +189,13 @@ namespace silverworker_discord
{
switch (r.Next(5))
{
- case 0:
- await message.Channel.SendFileAsync("./coding and algorithms.png", "i am actually niether neural-net processor nor a learning computer. but I do use **coding** and **algorithms**.");
+ default:
+ await message.Channel.SendFileAsync("assets/coding and algorithms.png", "i am actually niether neural-net processor nor a learning computer. but I do use **coding** and **algorithms**.");
break;
- case 1:
+ case 4:
await message.AddReactionAsync(new Emoji("\U0001F644")); //eye roll emoji
break;
- case 2:
+ case 5:
await message.AddReactionAsync(new Emoji("\U0001F611")); //emotionless face
break;
}
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e69de29
diff --git a/Program.cs b/Program.cs
index 02c4372..4b133ce 100644
--- a/Program.cs
+++ b/Program.cs
@@ -204,6 +204,10 @@ namespace silverworker_discord
{
Features.Joke(message);
}
+ if (Regex.IsMatch(msgText, "!pulse ?check\\b"))
+ {
+ message.Channel.SendFileAsync("assets/ekgblip.png");
+ }
if (msgText.Contains("cognitive dissonance") == true)
{
message.ReplyAsync("that's not what cognitive dissonance means. Did you mean \"hypocrisy\"?");
diff --git a/7e45c22053d79f9adb80c7552ae84be6.png b/assets/7e45c22053d79f9adb80c7552ae84be6.png
similarity index 100%
rename from 7e45c22053d79f9adb80c7552ae84be6.png
rename to assets/7e45c22053d79f9adb80c7552ae84be6.png
diff --git a/coding and algorithms.png b/assets/coding and algorithms.png
similarity index 100%
rename from coding and algorithms.png
rename to assets/coding and algorithms.png
diff --git a/assets/ekgblip.png b/assets/ekgblip.png
new file mode 100644
index 0000000..746fbe8
Binary files /dev/null and b/assets/ekgblip.png differ
diff --git a/jokes.txt b/assets/jokes.txt
similarity index 100%
rename from jokes.txt
rename to assets/jokes.txt
diff --git a/shtikbot-discord.csproj b/shtikbot-discord.csproj
index d97faf6..9e75929 100644
--- a/shtikbot-discord.csproj
+++ b/shtikbot-discord.csproj
@@ -19,10 +19,10 @@
Always
-
+
Always
-
+
Always