|  |  | @ -6,6 +6,7 @@ import ( | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	"github.com/bwmarrin/discordgo" |  |  |  | 	"github.com/bwmarrin/discordgo" | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	"PermissionGacha/modules/config" | 
			
		
	
		
		
			
				
					
					|  |  |  | 	"PermissionGacha/modules/level" |  |  |  | 	"PermissionGacha/modules/level" | 
			
		
	
		
		
			
				
					
					|  |  |  | ) |  |  |  | ) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -21,6 +22,7 @@ func handleLevelCommand(s *discordgo.Session, args []string, m *discordgo.Messag | 
			
		
	
		
		
			
				
					
					|  |  |  | 	if xp > levelUpRequirement { |  |  |  | 	if xp > levelUpRequirement { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		xp -= 100 |  |  |  | 		xp -= 100 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	if levels < len(config.LevelRoles) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		s.ChannelMessageSend( |  |  |  | 		s.ChannelMessageSend( | 
			
		
	
		
		
			
				
					
					|  |  |  | 			m.ChannelID, |  |  |  | 			m.ChannelID, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			fmt.Sprintf( |  |  |  | 			fmt.Sprintf( | 
			
		
	
	
		
		
			
				
					|  |  | @ -28,5 +30,14 @@ func handleLevelCommand(s *discordgo.Session, args []string, m *discordgo.Messag | 
			
		
	
		
		
			
				
					
					|  |  |  | 				m.Author.ID, levels, xp, levelUpRequirement, float64(xp)/float64(levelUpRequirement)*100, |  |  |  | 				m.Author.ID, levels, xp, levelUpRequirement, float64(xp)/float64(levelUpRequirement)*100, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			), |  |  |  | 			), | 
			
		
	
		
		
			
				
					
					|  |  |  | 		) |  |  |  | 		) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	} else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		s.ChannelMessageSend( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			m.ChannelID, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			fmt.Sprintf( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				"<@%s> is now level %d. (%d XP) [MAX LEVEL]", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				m.Author.ID, levels, xp, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 	return nil |  |  |  | 	return nil | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |