Skip to content

Commit

Permalink
start
Browse files Browse the repository at this point in the history
  • Loading branch information
outerwinnie committed Aug 31, 2024
1 parent b5c6fb9 commit 6be1d7e
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ENV DISCORD_BOT_TOKEN=""
ENV DISCORD_CHANNEL_ID=""
ENV GOOGLE_DRIVE_FILE_ID=""
ENV GOOGLE_CREDENTIALS_PATH="/app/credentials.json"
ENV POST_INTERVAL_SECONDS="15"
ENV POST_TIME="20:00:00"

# Entry point for the application
ENTRYPOINT ["dotnet", "Recuerdense-Bot.dll"]
5 changes: 4 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ private static async Task OnReady()
using (var csv = new CsvReader(reader, new CsvHelper.Configuration.CsvConfiguration(CultureInfo.InvariantCulture)))
{
_imageUrls = csv.GetRecords<YourRecordClass>()
.Where(record => !string.IsNullOrWhiteSpace(record.image_url) && record.has_spoilers != "yes")
.Where(record => !string.IsNullOrWhiteSpace(record.image_url)
&& record.has_spoilers != "yes"
&& record.total_reactions >= 8)
.Select(record => record.image_url.Trim())
.ToList();
}
Expand Down Expand Up @@ -211,5 +213,6 @@ public class YourRecordClass
{
public string image_url { get; set; }
public string has_spoilers { get; set; }
public int total_reactions { get; set; }
}
}
Binary file modified bin/Debug/net7.0/Recuerdense-Bot.dll
Binary file not shown.
Binary file modified bin/Debug/net7.0/Recuerdense-Bot.pdb
Binary file not shown.
36 changes: 36 additions & 0 deletions obj/Debug/net7.0/Recuerdense-Bot.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,39 @@ D:\Backup\Projectos\Bots\Recuerdense-Bot\Recuerdense-Bot\bin\Debug\net7.0\Google
D:\Backup\Projectos\Bots\Recuerdense-Bot\Recuerdense-Bot\bin\Debug\net7.0\System.CodeDom.dll
D:\Backup\Projectos\Bots\Recuerdense-Bot\Recuerdense-Bot\bin\Debug\net7.0\System.Management.dll
D:\Backup\Projectos\Bots\Recuerdense-Bot\Recuerdense-Bot\bin\Debug\net7.0\runtimes\win\lib\net7.0\System.Management.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Recuerdense-Bot.exe
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Recuerdense-Bot.deps.json
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Recuerdense-Bot.runtimeconfig.json
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Recuerdense-Bot.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Recuerdense-Bot.pdb
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\CsvHelper.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Discord.Net.Commands.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Discord.Net.Core.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Discord.Net.Interactions.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Discord.Net.Rest.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Discord.Net.Webhook.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Discord.Net.WebSocket.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Google.Apis.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Google.Apis.Auth.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Google.Apis.Core.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Google.Apis.Drive.v3.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Microsoft.Bcl.AsyncInterfaces.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\Newtonsoft.Json.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\System.CodeDom.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\System.Interactive.Async.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\System.Linq.Async.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\System.Management.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\System.Reactive.dll
D:\Winnie\Documentos\recuerdate\bin\Debug\net7.0\runtimes\win\lib\net7.0\System.Management.dll
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.csproj.AssemblyReference.cache
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.GeneratedMSBuildEditorConfig.editorconfig
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.AssemblyInfoInputs.cache
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.AssemblyInfo.cs
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.csproj.CoreCompileInputs.cache
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.csproj.CopyComplete
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.dll
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\refint\Recuerdense-Bot.dll
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.pdb
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\Recuerdense-Bot.genruntimeconfig.cache
D:\Winnie\Documentos\recuerdate\obj\Debug\net7.0\ref\Recuerdense-Bot.dll
Binary file modified obj/Debug/net7.0/Recuerdense-Bot.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion obj/Debug/net7.0/Recuerdense-Bot.genruntimeconfig.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c5b5b3feae0c9a0f91100e9ecc254a28be417313
1754626b8557ea19f5026ebfede234b854fd1d8f
Binary file modified obj/Debug/net7.0/Recuerdense-Bot.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/ref/Recuerdense-Bot.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/refint/Recuerdense-Bot.dll
Binary file not shown.

0 comments on commit 6be1d7e

Please sign in to comment.