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:
		@ -33,7 +33,7 @@ object Util {
 | 
			
		||||
   * @param resourceName Path to resource, it should be in the root of the `resources` directory,
 | 
			
		||||
   *  without the leading slash.
 | 
			
		||||
   */
 | 
			
		||||
  fun copyDefaultConfig(log: Logger, targetPath: Path, resourceName: String): Path {
 | 
			
		||||
  inline fun <reified T> copyDefaultConfig(log: Logger, targetPath: Path, resourceName: String): Path {
 | 
			
		||||
    if (resourceName.startsWith("/")) {
 | 
			
		||||
      throw IllegalArgumentException("resourceName starts with slash")
 | 
			
		||||
    }
 | 
			
		||||
@ -48,7 +48,7 @@ object Util {
 | 
			
		||||
      return outPath
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    val resourceStream = javaClass.getResourceAsStream("/$resourceName")
 | 
			
		||||
    val resourceStream = T::class.java.getResourceAsStream("/$resourceName")
 | 
			
		||||
      ?: throw Exception("Configuration resource does not exist!")
 | 
			
		||||
    val outputStream = outFile.outputStream()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,10 +0,0 @@
 | 
			
		||||
# 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