forked from adam/discord-bot-shtik
Compare commits
No commits in common. "4c06a744109cb9b1a1052ad265d1ee95cc7a1da0" and "b3eb7b1ff14206be485bbf3c072fe3c4cf715d61" have entirely different histories.
4c06a74410
...
b3eb7b1ff1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,5 @@
|
|||||||
appsettings.Development.json
|
appsettings.Development.json
|
||||||
assets/exchangepairs.json
|
assets/exchangepairs.json
|
||||||
fail*/
|
|
||||||
|
|
||||||
# ---> VisualStudio
|
# ---> VisualStudio
|
||||||
## Ignore Visual Studio temporary files, build results, and
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
@ -139,11 +139,10 @@ public class TwitchInterface
|
|||||||
|
|
||||||
private async void Client_OnConnected(object sender, OnConnectedArgs e)
|
private async void Client_OnConnected(object sender, OnConnectedArgs e)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"twitch marking selfaccount as seeninchannel {protocolAsChannel.Id}");
|
|
||||||
var selfAccount = UpsertAccount(e.BotUsername, protocolAsChannel.Id);
|
var selfAccount = UpsertAccount(e.BotUsername, protocolAsChannel.Id);
|
||||||
Behaver.Instance.MarkSelf(selfAccount);
|
|
||||||
|
|
||||||
await _db.SaveChangesAsync();
|
await _db.SaveChangesAsync();
|
||||||
|
Behaver.Instance.MarkSelf(selfAccount);
|
||||||
|
|
||||||
Console.WriteLine($"Connected to {e.AutoJoinChannel}");
|
Console.WriteLine($"Connected to {e.AutoJoinChannel}");
|
||||||
}
|
}
|
||||||
@ -160,12 +159,10 @@ public class TwitchInterface
|
|||||||
|
|
||||||
private Account UpsertAccount(string username, Guid inChannel)
|
private Account UpsertAccount(string username, Guid inChannel)
|
||||||
{
|
{
|
||||||
var seenInChannel = _db.Channels.FirstOrDefault(c => c.Id == inChannel);
|
|
||||||
var acc = _db.Accounts.FirstOrDefault(ui => ui.ExternalId == username && ui.SeenInChannel.Id == inChannel);
|
var acc = _db.Accounts.FirstOrDefault(ui => ui.ExternalId == username && ui.SeenInChannel.Id == inChannel);
|
||||||
if (acc == null)
|
if (acc == null)
|
||||||
{
|
{
|
||||||
acc = new Account();
|
acc = new Account();
|
||||||
acc.SeenInChannel = seenInChannel;
|
|
||||||
_db.Accounts.Add(acc);
|
_db.Accounts.Add(acc);
|
||||||
}
|
}
|
||||||
acc.Username = username;
|
acc.Username = username;
|
||||||
|
@ -13,11 +13,11 @@ that's read messages/view channels, send messages, send messages in threads, and
|
|||||||
|
|
||||||
### Accounts
|
### Accounts
|
||||||
|
|
||||||
a `User` can have multiple `Account`s. e.g., @adam:greyn.club? that's an "account". I, however, am a `User`. An `Account` has references to the `Channels` its seen in - as in, leaf-level. If you're in a subchannel, you'll have an appropriate listing there - i.e., you will never have an account in "discord (itself)", you'll have one in the guild text-channels
|
a `User` can have multiple `Account`s. e.g., @adam:greyn.club? that's an "account". I, however, am a `User`. An `Account` has references to the `Channels` its seen in.
|
||||||
|
|
||||||
### Attachment
|
### Attachment
|
||||||
|
|
||||||
debating whether to save a copy of every single attachment. Discord allows 100MB attachments for turbo users, and shtikbot lives in several art channels. (unfortunately, being that shtikbot doesn't have a viable SMS spam vector, it's limited to 8MB, in contradiction to discord itself reporting a server that doesn't agree to put its own name on discord's finer-grained rules has a limit of 10MB)
|
debating whether to save a copy of every single attachment. Discord allows 25MB attachments, and shtikbot lives in several art channels.
|
||||||
|
|
||||||
### Channel
|
### Channel
|
||||||
|
|
||||||
|
15
fail133653846161056785/error0.err
Normal file
15
fail133653846161056785/error0.err
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"ClassName": "System.ComponentModel.Win32Exception",
|
||||||
|
"Message": "An error occurred trying to start process 'convert' with working directory '/home/adam/Desktop/vassago'. No such file or directory",
|
||||||
|
"Data": null,
|
||||||
|
"InnerException": null,
|
||||||
|
"HelpURL": null,
|
||||||
|
"StackTraceString": " at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)\n at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)\n at vassago.ExternalProcess.GoPlz(String commandPath, String commandArguments) in /home/adam/Desktop/vassago/externalProcess.cs:line 30",
|
||||||
|
"RemoteStackTraceString": null,
|
||||||
|
"RemoteStackIndex": 0,
|
||||||
|
"ExceptionMethod": null,
|
||||||
|
"HResult": -2147467259,
|
||||||
|
"Source": "System.Diagnostics.Process",
|
||||||
|
"WatsonBuckets": null,
|
||||||
|
"NativeErrorCode": 2
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user