Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
outerwinnie committed Aug 31, 2024
1 parent b571f09 commit fbfacdf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace DiscordBotExample
{
class Program
{
private static List<string> _imageUrls;
private static List<string> _messages;
private static Random _random = new Random();
private static DiscordSocketClient _client;
Expand Down Expand Up @@ -98,9 +97,9 @@ private static async Task OnReady()
{
if (!string.IsNullOrWhiteSpace(record.image_url))
{
return $"{record.message_text}\n{record.image_url.Trim()}";
return $"{record.message}\n{record.image_url.Trim()}";
}
return record.message_text;
return record.message;
}).ToList();
}

Expand Down Expand Up @@ -212,7 +211,7 @@ private static async Task PostRandomMessage()
// Define a class that matches the CSV structure
public class YourRecordClass
{
public string message_text { get; set; }
public string message { get; set; }
public string image_url { get; set; }
public string has_spoilers { get; set; }
public int total_reactions { get; set; }
Expand Down

0 comments on commit fbfacdf

Please sign in to comment.