Skip to content

Commit 02379b9

Browse files
committed
fix: cleaned up and added roles aswell as comments
1 parent 8cd2837 commit 02379b9

File tree

1 file changed

+130
-113
lines changed

1 file changed

+130
-113
lines changed

tux/cogs/guild/rolecount.py

Lines changed: 130 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -10,133 +10,148 @@
1010
# This will be moved to a plugin as soon as possible
1111
# Please do not enable this cog in your bot if you are not All Things Linux
1212

13+
# I added comments to all these roles below incase someone really wanted to edit this - cherryl1k
14+
1315
des_ids = [
14-
[1175177565086953523, "_kde"],
15-
[1175177703066968114, "_gnome"],
16-
[1175177036990533795, "_i3"],
17-
[1175222139046080582, "_hyprland"],
18-
[1175177087183769660, "_sway"],
19-
[1175243354557128765, "_xfce"],
20-
[1175220317174632489, "_dwm"],
21-
[1175177142108160121, "_bspwm"],
22-
[1181288708977205318, "_cinnamon"],
23-
[1175242546012753941, "_xmonad"],
24-
[1175241189935550554, "_awesome"],
25-
[1175245686489501726, "_mate"],
26-
[1175241537689489408, "_qtile"],
27-
[1175221470587256852, "_emacs"],
28-
[1175240614124732487, "_herbstluft"],
29-
[1175219898113331331, "_icewm"],
30-
[1175337897180803082, "_openbox"],
31-
[1175336806963744788, "_wayfire"],
32-
[1367180985602412668, "_cosmic"],
33-
[1192149690096033882, "_budgie"],
34-
[1196324646170148925, "_riverwm"],
35-
[1350877106606968903, "_niri"],
36-
[1212031657805221930, "_stumpwm"],
37-
[1232200058737397771, "_lxqt"],
38-
[1297922269628338290, "grey_question"], # Other DE/WM role
16+
[1175177565086953523, "_kde"], # KDE
17+
[1175177703066968114, "_gnome"], # GNOME
18+
[1175177036990533795, "_i3"], # i3
19+
[1175222139046080582, "_hyprland"], # Hyprland
20+
[1175177087183769660, "_sway"], # Sway
21+
[1175243354557128765, "_xfce"], # XFCE
22+
[1175220317174632489, "_dwm"], # DWM/DWL
23+
[1175177142108160121, "_bspwm"], # BSPWM
24+
[1181288708977205318, "_cinnamon"], # Cinnamon
25+
[1175242546012753941, "_xmonad"], # XMonad
26+
[1175241189935550554, "_awesome"], # AwesomeWM
27+
[1175245686489501726, "_mate"], # MATE
28+
[1175241537689489408, "_qtile"], # Qtile
29+
[1175221470587256852, "_emacs"], # EXWM
30+
[1175240614124732487, "_herbstluft"], # HerbstluftWM
31+
[1175219898113331331, "_icewm"], # IceWM
32+
[1175337897180803082, "_openbox"], # Openbox
33+
[1175336806963744788, "_wayfire"], # Wayfire
34+
[1367180985602412668, "_cosmic"], # COSMIC
35+
[1192149690096033882, "_budgie"], # Budgie
36+
[1196324646170148925, "_riverwm"], # River
37+
[1350877106606968903, "_niri"], # Niri
38+
[1232200058737397771, "_lxqt"], # LXQt
39+
[1297922269628338290, "grey_question"], # Other DE/WM
3940
]
4041

4142
distro_ids = [
42-
[1175176142899122246, "_arch"],
43-
[1175176866928263220, "_debian"],
44-
[1175176922460860517, "_fedora"],
45-
[1175176812293271652, "_ubuntu"],
46-
[1175235143707918436, "_windows"],
47-
[1175176279616663573, "_gentoo"],
48-
[1175227850119458897, "_freebsd"], # *BSD role
49-
[1175177831551086593, "_nixos"],
50-
[1175178088347344916, "_void"],
51-
[1175176981936087161, "_opensuse"],
52-
[1175244437530611712, "_macos"],
53-
[1175241975818092564, "_alpine"],
54-
[1175177993526726717, "_linuxmint"],
55-
[1176533514385096714, "_bedrock"],
56-
[1290975975919849482, "_arch"], # Arch-based role
57-
[1182152672447569972, "_slackware"],
58-
[1178347123905929316, "_ubuntu"], # Ubuntu-basesd role
59-
[1180570700734546031, "_lfs"],
60-
[1192177499413684226, "_asahi"],
61-
[1207599112585740309, "_fedoraatomic"],
62-
[1210000519272079411, "_redhat"],
63-
[1212028841103597679, "_plan9"],
64-
[1237704018629885983, "_cachyos"],
65-
[1237701203404783698, "_fedora"], # Fedora-based role
43+
[1175176142899122246, "_arch"], # Arch
44+
[1175176866928263220, "_debian"], # Debian
45+
[1175176922460860517, "_fedora"], # Fedora
46+
[1175176812293271652, "_ubuntu"], # Ubuntu
47+
[1175235143707918436, "_windows"], # Windows
48+
[1175176279616663573, "_gentoo"], # Gentoo
49+
[1175227850119458897, "_freebsd"], # *BSD
50+
[1175177831551086593, "_nixos"], # NixOS
51+
[1175178088347344916, "_void"], # Void
52+
[1175176981936087161, "_opensuse"], # openSUSE
53+
[1175244437530611712, "_macos"], # macOS
54+
[1175241975818092564, "_alpine"], # Alpine
55+
[1175177993526726717, "_linuxmint"], # Mint
56+
[1176533514385096714, "_bedrock"], # Bedrock
57+
[1290975975919849482, "_arch"], # Arch-based
58+
[1182152672447569972, "_slackware"], # Slackware
59+
[1178347123905929316, "_ubuntu"], # Ubuntu-basesd
60+
[1180570700734546031, "_lfs"], # LFS
61+
[1192177499413684226, "_asahi"], # Asahi
62+
[1207599112585740309, "_fedoraatomic"], # Fedora Atomic
63+
[1210000519272079411, "_redhat"], # RHEL
64+
[1212028841103597679, "_plan9"], # Plan 9
65+
[1237704018629885983, "_cachyos"], # CachyOS
66+
[1237701203404783698, "_fedora"], # Fedora-based
67+
[1386793599483646044, "_endeavouros"], # EndeavourOS
68+
[1367198731115434035, "_solus"], # Solus
69+
[1297922102917206109, "grey_question"], # Other OS
6670
]
6771

6872
lang_ids = [
69-
[1175612831996055562, "_python"],
70-
[1175612831861837864, "_sh"], # Shell Script role
71-
[1175612831941525574, "_html"], # HTML/CSS role
72-
[1175612831115260006, "_javascript"], # JS/TS role
73-
[1175612831652139008, "_c"],
74-
[1386793293576409139, "_cplusplus"],
75-
[1175612831790534797, "_lua"],
76-
[1175612831631155220, "_rust"],
77-
[1175612831907979336, "_java"],
78-
[1175612831798939648, "_csharp"],
79-
[1178389324098699294, "_php"],
80-
[1175612831798931556, "_haskell"],
81-
[1175612831727632404, "_ruby"],
82-
[1175612831828295680, "_kotlin"],
83-
[1175739620437266443, "_go"],
84-
[1175612831731822734, "_lisp"],
85-
[1175612831920558191, "_perl"],
86-
[1185975879231348838, "_asm"],
87-
[1175612830389633164, "_ocaml"],
88-
[1175612831727620127, "_erlang"],
89-
[1175612831287218250, "_zig"],
90-
[1175612831878615112, "_julia"],
91-
[1175612831429824572, "_crystal"],
92-
[1175612831761182720, "_elixir"],
93-
[1207600618542206976, "_clojure"],
94-
[1232389554426876045, "_godot"],
95-
[1232390379337285692, "_nim"],
96-
[1237700521465217084, "_swift"],
97-
[1214465450860351498, "_r"],
73+
[1175612831996055562, "_python"], # Python
74+
[1175612831861837864, "_sh"], # Shell Script
75+
[1175612831941525574, "_html"], # HTML/CSS
76+
[1175612831115260006, "_javascript"], # JS/TS
77+
[1175612831652139008, "_c"], # C-Lang
78+
[1386793293576409139, "_cplusplus"], # C++
79+
[1175612831790534797, "_lua"], # Lua
80+
[1175612831631155220, "_rust"], # Rust
81+
[1175612831907979336, "_java"], # Java
82+
[1175612831798939648, "_csharp"], # C#
83+
[1178389324098699294, "_php"], # PHP
84+
[1175612831798931556, "_haskell"], # Haskell
85+
[1175612831727632404, "_ruby"], # Ruby
86+
[1175612831828295680, "_kotlin"], # Kotlin
87+
[1175739620437266443, "_go"], # Go-Lang
88+
[1175612831731822734, "_lisp"], # Lisp
89+
[1175612831920558191, "_perl"], # Perl
90+
[1185975879231348838, "_asm"], # Assembly
91+
[1175612830389633164, "_ocaml"], # OCaml
92+
[1175612831727620127, "_erlang"], # Erlang
93+
[1175612831287218250, "_zig"], # Zig
94+
[1175612831878615112, "_julia"], # Julia
95+
[1175612831429824572, "_crystal"], # Crystal
96+
[1175612831761182720, "_elixir"], # Elixer
97+
[1207600618542206976, "_clojure"], # Clojure
98+
[1232389554426876045, "_godot"], # GDScript
99+
[1232390379337285692, "_nim"], # Nim
100+
[1237700521465217084, "_swift"], # Swift
101+
[1214465450860351498, "_r"], # R-Lang
102+
[1263802450591223830, "_dart"], # Dart
98103
]
99104

100-
vanity_ids = [
101-
[1179277471883993219, "wheel"],
102-
[1197348658052616254, "mag"],
103-
[1175237664811790366, "regional_indicator_e"],
104-
[1186473849294962728, "smirk_cat"],
105-
[1180568491527516180, "supertuxkart"],
106-
[1179551412070404146, "100"],
107-
[1183896066588950558, "rabbit"],
108-
[1192245668534833242, "cd"],
109-
[1179551519624925294, "hugging"],
110-
[1183897526613577818, "hdtroll"],
111-
[1175756229168079018, "_git"],
112-
[1197353868103782440, "goblin"],
113-
[1202544488262664262, "bar_chart"],
114-
[1186473904773017722, "man_mage"],
115-
[1208233484230074408, "ghost"],
116-
[1217601089721995264, "old_man"],
117-
[1217866697751400518, "ear_of_rice"],
118-
[1212039041269366854, "chess_pawn"],
119-
[1346489154766372874, "headphones"],
105+
editor_ids = [
106+
[1182069378636849162, "_vsc"], # VS code
107+
[1180571441276649613, "_nvim"], # Neovim
108+
[1180660198428393643, "_emacs"], # Emacs
109+
[1192140446919561247, "_gnunano"], # Nano
110+
[1193242175295729684, "_kate"], # Kate
111+
[1192135710443065345, "_micro"], # Micro
112+
[1193241331221405716, "_jetbrains"], # JetBrains
113+
[1185974067472380015, "_helix"], # Helix
114+
[1367199157768425622, "_ed"], # Ed
115+
[1392616344075243570, "_Cursor"], # Cursor
116+
[1367199970587050035, "_zed"], # Zed
120117
]
121118

122-
editor_ids = [
123-
[1182069378636849162, "_vsc"],
124-
[1180571441276649613, "_nvim"],
125-
[1180660198428393643, "_emacs"],
126-
[1192140446919561247, "_gnunano"],
127-
[1193242175295729684, "_kate"],
128-
[1192135710443065345, "_micro"],
129-
[1193241331221405716, "_jetbrains"],
130-
[1185974067472380015, "_helix"],
131-
[1192139311919935518, "_kakoune"],
132-
[1187804435578093690, "_ed"],
133-
[1392616344075243570, "_Cursor"],
134-
[1367199970587050035, "_zed"],
119+
shell_ids = [
120+
[1198870981733785610, "_bash"], # /bin/bash
121+
[1212034189638111232, "_debian"], # /bin/dash
122+
[1198874174182133771, "elf"], # /bin/elvish
123+
[1198870266680451162, "fish"], # /bin/fish
124+
[1198868737227509801, "corn"], # /bin/ksh
125+
[1198871282717040670, "new"], # /bin/nu
126+
[1198872955598409848, "shell"], # /bin/sh
127+
[1198868318266851339, "zap"], # /bin/zsh
128+
[1198875780252454932, "_python"], # /bin/xonsh
135129
]
136130

137-
# TODO: Shell Roles (needs emojis)
131+
vanity_ids = [
132+
[1179277471883993219, "wheel"], # %wheel
133+
[1197348658052616254, "mag"], # Log Reader
134+
[1175237664811790366, "regional_indicator_e"], # ? (Yes seriously thats the role name.)
135+
[1186473849294962728, "smirk_cat"], # :3
136+
[1180568491527516180, "supertuxkart"], # STKS Award
137+
[1179551412070404146, "100"], # Based
138+
[1183896066588950558, "rabbit"], # Chronic Hopper
139+
[1192245668534833242, "cd"], # Crate Digger
140+
[1179551519624925294, "hugging"], # Helpful
141+
[1175756229168079018, "_git"], # FOSS Contributor
142+
[1197353868103782440, "goblin"], # VC Goblin
143+
[1217601089721995264, "old_man"], # Boomer
144+
[1346489154766372874, "headphones"], # ON AIR
145+
[1184245004198228050, "tux"], # Tux Contributor
146+
[1252848417026080809, "crown"], # Donor Legend
147+
[1249858729311211611, "first_place"], # Super Donor
148+
[1253392359765311518, "second_place"], # Donor +
149+
[1249802272007917678, "third_place"], # Donor
150+
[1172264612578742334, "rocket"], # Booster
151+
[1247532827902480475, "books"], # Wiki Author
152+
]
138153

139-
# TODO: Figure out how to make rolecount work without hard coded ids
154+
# TODO: Figure out how to make rolecount work without hard coded ids and icons
140155

141156

142157
class RoleCount(commands.Cog):
@@ -147,6 +162,7 @@ def __init__(self, bot: Tux):
147162
"lg": lang_ids,
148163
"de": des_ids,
149164
"edit": editor_ids,
165+
"sh": shell_ids,
150166
"vanity": vanity_ids,
151167
}
152168

@@ -158,6 +174,7 @@ def __init__(self, bot: Tux):
158174
app_commands.Choice(name="Language", value="lg"),
159175
app_commands.Choice(name="DE/WM", value="de"),
160176
app_commands.Choice(name="Editors", value="edit"),
177+
app_commands.Choice(name="Shells", value="sh"),
161178
app_commands.Choice(name="Vanity", value="vanity"),
162179
],
163180
)

0 commit comments

Comments
 (0)