// Path: src/main/java/com/github/otbproject/otbproject/user/UserLevel.java
// public enum UserLevel {
//     IGNORED(-10), DEFAULT(0), SUBSCRIBER(5), REGULAR(10), MODERATOR(20), SUPER_MODERATOR(30), BROADCASTER(40), INTERNAL(50), TOO_HIGH(200);
// 
//     private final int value;
// 
//     UserLevel(int userLevel) {
//         this.value = userLevel;
//     }
// 
//     public int getValue() {
//         return value;
//     }
// }


import com.github.otbproject.otbproject.channel.ChannelNotFoundException;
import com.github.otbproject.otbproject.channel.ChannelProxy;
import com.github.otbproject.otbproject.database.DatabaseWrapper;
import com.github.otbproject.otbproject.user.UserLevel;
import com.github.otbproject.otbproject.user.UserLevels;
package com.github.otbproject.otbproject.bot;


public class BotUtil {
    private BotUtil() {}

    public static boolean isModOrHigher(String channelName, String user) throws ChannelNotFoundException {
        // Check if user has user level mod or higher
        ChannelProxy channel = Control.bot().channelManager().getOrThrow(channelName);
        DatabaseWrapper db = channel.getMainDatabaseWrapper();
// Path: src/main/java/com/github/otbproject/otbproject/user/UserLevel.java
// public enum UserLevel {
//     IGNORED(-10), DEFAULT(0), SUBSCRIBER(5), REGULAR(10), MODERATOR(20), SUPER_MODERATOR(30), BROADCASTER(40), INTERNAL(50), TOO_HIGH(200);
// 
//     private final int value;
// 
//     UserLevel(int userLevel) {
//         this.value = userLevel;
//     }
// 
//     public int getValue() {
//         return value;
//     }
// }


// Path: src/main/java/com/github/otbproject/otbproject/bot/BotUtil.java
import com.github.otbproject.otbproject.channel.ChannelNotFoundException;
import com.github.otbproject.otbproject.channel.ChannelProxy;
import com.github.otbproject.otbproject.database.DatabaseWrapper;
import com.github.otbproject.otbproject.user.UserLevel;
import com.github.otbproject.otbproject.user.UserLevels;

package com.github.otbproject.otbproject.bot;


public class BotUtil {
    private BotUtil() {}

    public static boolean isModOrHigher(String channelName, String user) throws ChannelNotFoundException {
        // Check if user has user level mod or higher
        ChannelProxy channel = Control.bot().channelManager().getOrThrow(channelName);
        DatabaseWrapper db = channel.getMainDatabaseWrapper();
        UserLevel ul = UserLevels.getUserLevel(db, channelName, user);