158 limit (int): The number of top users to retrieve.
159
160 Returns:
161 dict: A dictionary with user_id as key and their level, xp, and total_xp as values.162 """
163 if db_handler.db_type == "mysql":
164 db_handler.connection.ping(reconnect=True, attempts=3)
108 @staticmethod
109 def find_interaction(*args):
110 """
111 Finds and returns the first instance of nextcord.Interaction in the provided arguments.112
113 Args:
114 *args: Variable length argument list.
69 perm_config (str): The permission configuration path.
70
71 Raises:
72 ValueError: If perm_config is not provided or if an invalid database type is provided. 73 FileNotFoundError: If the permission config file is not found.
74 YAMLError: If there is an error in the YAML format of the permission config.
75 """
149
150 Args:
151 num_spins (int): The number of spins to simulate.
152 print_results (bool): If True, prints the results of each win and the overall statistics.153
154 Returns:
155 float: The winning percentage of the simulation.
137 Spins the wheel and checks if the result is a winning combination.
138
139 Returns:
140 tuple: A tuple containing a boolean indicating if it's a win and the list of columns.141 """
142 columns = self.spin_wheel()
143 won, mega_score, deficient_score = self.is_winning(columns)
Docstring line lengths are recommended to be no greater than 79 characters.