mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	* Refactored some of the cleanup code
* Fixed blacklist issues due to code conversion from efcore to linq2db * Fixed medusasearch not having a description
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
#nullable disable
 | 
			
		||||
using Microsoft.EntityFrameworkCore;
 | 
			
		||||
using Microsoft.Extensions.Logging;
 | 
			
		||||
using NadekoBot.Db.Models;
 | 
			
		||||
using NadekoBot.Services.Database.Models;
 | 
			
		||||
 | 
			
		||||
@@ -481,10 +482,10 @@ public abstract class NadekoContext : DbContext
 | 
			
		||||
        #endregion
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
// #if DEBUG
 | 
			
		||||
//     private static readonly ILoggerFactory _debugLoggerFactory = LoggerFactory.Create(x => x.AddConsole());
 | 
			
		||||
//
 | 
			
		||||
//     protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 | 
			
		||||
//         => optionsBuilder.UseLoggerFactory(_debugLoggerFactory);
 | 
			
		||||
// #endif
 | 
			
		||||
#if DEBUG
 | 
			
		||||
    private static readonly ILoggerFactory _debugLoggerFactory = LoggerFactory.Create(x => x.AddConsole());
 | 
			
		||||
 | 
			
		||||
    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 | 
			
		||||
        => optionsBuilder.UseLoggerFactory(_debugLoggerFactory);
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
@@ -1358,6 +1358,9 @@ medusalist:
 | 
			
		||||
medusainfo:
 | 
			
		||||
  - medusainfo
 | 
			
		||||
  - meinfo
 | 
			
		||||
medusasearch:
 | 
			
		||||
  - medusasearch
 | 
			
		||||
  - mesearch
 | 
			
		||||
# Bank stuff
 | 
			
		||||
bankdeposit:
 | 
			
		||||
  - deposit
 | 
			
		||||
 
 | 
			
		||||
@@ -2282,6 +2282,11 @@ medusalist:
 | 
			
		||||
    Read about the medusa system [here](https://nadekobot.readthedocs.io/en/latest/medusa/creating-a-medusa/)
 | 
			
		||||
  args:
 | 
			
		||||
    - ""
 | 
			
		||||
medusasearch:
 | 
			
		||||
  desc: |-
 | 
			
		||||
    Searches for medusae online given the search term
 | 
			
		||||
  args:
 | 
			
		||||
    - "shrine"
 | 
			
		||||
bankdeposit:
 | 
			
		||||
  desc: "Deposits the specified amount of currency into the bank for later use."
 | 
			
		||||
  args:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user