mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 11:39:39 +00:00 
			
		
		
		
	Move bifrost.yaml to foundation-bifrost.
This commit is contained in:
		@ -35,7 +35,11 @@ class FoundationBifrostPlugin : JavaPlugin(), EventListener, Listener {
 | 
			
		||||
    val foundation = server.pluginManager.getPlugin("Foundation") as FoundationCorePlugin
 | 
			
		||||
    slF4JLogger.info("Plugin data path: ${foundation.pluginDataPath}")
 | 
			
		||||
 | 
			
		||||
    val configPath = Util.copyDefaultConfig(slF4JLogger, foundation.pluginDataPath, "bifrost.yaml")
 | 
			
		||||
    val configPath = Util.copyDefaultConfig<FoundationBifrostPlugin>(
 | 
			
		||||
      slF4JLogger,
 | 
			
		||||
      foundation.pluginDataPath,
 | 
			
		||||
      "bifrost.yaml"
 | 
			
		||||
    )
 | 
			
		||||
    config = Yaml.default.decodeFromStream(BifrostConfig.serializer(), configPath.inputStream())
 | 
			
		||||
 | 
			
		||||
    server.pluginManager.registerEvents(this, this)
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										10
									
								
								foundation-bifrost/src/main/resources/bifrost.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								foundation-bifrost/src/main/resources/bifrost.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
# Authentication configuration for the bridge.
 | 
			
		||||
authentication:
 | 
			
		||||
  # Token from the Discord Bot developer's page.
 | 
			
		||||
  token: abc123
 | 
			
		||||
 | 
			
		||||
# Channel configuration for the bridge.
 | 
			
		||||
channel:
 | 
			
		||||
  # Channel ID, can be copied by turning on Developer Mode in User Settings -> Advanced. The ID can
 | 
			
		||||
  # then be copied by right-clicking the channel and selecting "Copy ID".
 | 
			
		||||
  id: 123456789
 | 
			
		||||
		Reference in New Issue
	
	Block a user