athphane / userbot

Use items() to iterate over a dictionary PTC-W0011
Anti-pattern
Major
5 months ago4 years old
Consider using text_apis_data.items() to iterate over the dictionary
80
81
82# Command help section
83for x in text_apis_data:84    add_command_help(
85        "text",
86        [
Consider using cf_api_data.items() to iterate over the dictionary
73
74
75# Command help section
76for x in cf_api_data:77    add_command_help(
78        "anime_cf",
79        [
Consider using special_emojis_dict.items() to iterate over the dictionary
55    [".earth `or` .globe", "Make the world go round."],
56]
57
58for x in special_emojis_dict:59    special_emoji_help.append([f".{x}", special_emojis_dict[x]["help"]])
60
61add_command_help("emoji", special_emoji_help)