force working

This commit is contained in:
Adam R Grey 2021-12-08 12:39:01 -05:00
parent 3eb4d617e4
commit 910cdbbb99

View File

@ -10,7 +10,7 @@ using Discord.WebSocket;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using System.Text;
using franz;
//using franz;
namespace silverworker_discord
{
@ -50,7 +50,7 @@ namespace silverworker_discord
_client.JoinedGuild += IJoined;
});
Telefranz.Configure("scheduler", config["kafka_bootstrap"]);
//Telefranz.Configure("scheduler", config["kafka_bootstrap"]);
//Telefranz.Instance.addHandler
// Block this task until the program is closed.
@ -147,7 +147,7 @@ namespace silverworker_discord
var abbreviatedNickname = arg.Nickname ?? arg.Username;
if (abbreviatedNickname.Length > 3)
{
abbreviatedNickname = arg.Nickname.Substring(0, arg.Nickname.Length / 3);
abbreviatedNickname = abbreviatedNickname.Substring(0, abbreviatedNickname.Length / 3);
}
Console.WriteLine($"imma call him {abbreviatedNickname}");
return arg.Guild.DefaultChannel.SendMessageAsync($"oh hey {abbreviatedNickname}- IPLAYTHESEALOFORICHALCOS <:ORICHALCOS:852749196633309194>");