Last Check
This commit is contained in:
@@ -34,7 +34,7 @@ public partial class MareHub
|
|||||||
if (group == null || sender == null) return;
|
if (group == null || sender == null) return;
|
||||||
|
|
||||||
// TODO: Add and check chat permissions
|
// TODO: Add and check chat permissions
|
||||||
if (group.Alias?.Equals("Loporrit", StringComparison.Ordinal) ?? false)
|
if (group.Alias?.Equals("Umbra", StringComparison.Ordinal) ?? false)
|
||||||
{
|
{
|
||||||
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Warning, $"Chat is disabled for syncshell '{dto.GroupAliasOrGID}'.").ConfigureAwait(false);
|
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Warning, $"Chat is disabled for syncshell '{dto.GroupAliasOrGID}'.").ConfigureAwait(false);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public partial class MareHub : Hub<IMareHub>, IMareHub
|
|||||||
dbUser.LastLoggedIn = DateTime.UtcNow;
|
dbUser.LastLoggedIn = DateTime.UtcNow;
|
||||||
await DbContext.SaveChangesAsync().ConfigureAwait(false);
|
await DbContext.SaveChangesAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Information, "Welcome to Loporrit, Current Online Users: " + _systemInfoService.SystemInfoDto.OnlineUsers).ConfigureAwait(false);
|
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Information, "Welcome to Umbra, Current Online Users: " + _systemInfoService.SystemInfoDto.OnlineUsers).ConfigureAwait(false);
|
||||||
|
|
||||||
return new ConnectionDto(new UserData(dbUser.UID, string.IsNullOrWhiteSpace(dbUser.Alias) ? null : dbUser.Alias))
|
return new ConnectionDto(new UserData(dbUser.UID, string.IsNullOrWhiteSpace(dbUser.Alias) ? null : dbUser.Alias))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public class MareModule : InteractionModuleBase
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Loporrit - Register immediately
|
// Umbra - Register immediately
|
||||||
var user = new User();
|
var user = new User();
|
||||||
|
|
||||||
var hasValidUid = false;
|
var hasValidUid = false;
|
||||||
@@ -121,7 +121,7 @@ public class MareModule : InteractionModuleBase
|
|||||||
+ Environment.NewLine + Environment.NewLine
|
+ Environment.NewLine + Environment.NewLine
|
||||||
+ $"**{computedHash}**"
|
+ $"**{computedHash}**"
|
||||||
+ Environment.NewLine + Environment.NewLine
|
+ Environment.NewLine + Environment.NewLine
|
||||||
+ "Enter this key in Loporrit Sync and hit Connect / Reconnect."
|
+ "Enter this key in Umbra Sync and hit Connect / Reconnect."
|
||||||
+ Environment.NewLine
|
+ Environment.NewLine
|
||||||
+ "Have fun.");
|
+ "Have fun.");
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ public class MareModule : InteractionModuleBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Loporrit - Disable /verify command
|
// Umbra - Disable /verify command
|
||||||
//[SlashCommand("verify", "Finishes the registration process for the Mare Synchronos server of this Discord")]
|
//[SlashCommand("verify", "Finishes the registration process for the Mare Synchronos server of this Discord")]
|
||||||
public async Task Verify()
|
public async Task Verify()
|
||||||
{
|
{
|
||||||
@@ -246,7 +246,7 @@ public class MareModule : InteractionModuleBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Loporrit - Disable /verify command
|
// Umbra - Disable /verify command
|
||||||
//[SlashCommand("verify_relink", "Finishes the relink process for your user on the Mare Synchronos server of this Discord")]
|
//[SlashCommand("verify_relink", "Finishes the relink process for your user on the Mare Synchronos server of this Discord")]
|
||||||
public async Task VerifyRelink()
|
public async Task VerifyRelink()
|
||||||
{
|
{
|
||||||
@@ -766,7 +766,7 @@ public class MareModule : InteractionModuleBase
|
|||||||
+ Environment.NewLine + Environment.NewLine
|
+ Environment.NewLine + Environment.NewLine
|
||||||
+ $"**{computedHash}**"
|
+ $"**{computedHash}**"
|
||||||
+ Environment.NewLine + Environment.NewLine
|
+ Environment.NewLine + Environment.NewLine
|
||||||
+ "Enter this key in Loporrit Sync and hit save to connect to the service.");
|
+ "Enter this key in Umbra Sync and hit save to connect to the service.");
|
||||||
|
|
||||||
await db.Auth.AddAsync(auth).ConfigureAwait(false);
|
await db.Auth.AddAsync(auth).ConfigureAwait(false);
|
||||||
await db.SaveChangesAsync().ConfigureAwait(false);
|
await db.SaveChangesAsync().ConfigureAwait(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user