Skip to content

Commit 837d529

Browse files
authored
Changed wiki links from gamepedia to wiki.gg
1 parent 3513199 commit 837d529

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

deck_code_bot/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def calculate_reply_length(reply_chunks):
8686
def make_reply(decks, locale="enUS"):
8787
db, _ = load_dbf(locale=locale)
8888
if locale != "enUS":
89-
english_db, _ = load_dbf(locale="enUS") # For Gamepedia links
89+
english_db, _ = load_dbf(locale="enUS") # For Wiki links
9090
else:
9191
english_db = db
9292

@@ -151,12 +151,12 @@ def make_reply(decks, locale="enUS"):
151151

152152
def get_card_links(card, english_card, locale):
153153
hsreplaynet_link = get_hsreplaynet_link(card, locale)
154-
gamepedia_link = get_gamepedia_link(english_card)
154+
wiki_link = get_wiki_link(english_card)
155155

156156
return ",".join(
157157
(
158158
markdown_link("HSReplay", hsreplaynet_link),
159-
markdown_link("Wiki", gamepedia_link),
159+
markdown_link("Wiki", wiki_link),
160160
)
161161
)
162162

@@ -177,8 +177,8 @@ def get_hsreplaynet_link(card, locale):
177177
return ret
178178

179179

180-
def get_gamepedia_link(card):
181-
return f"https://hearthstone.gamepedia.com/{quote(card.name)}"
180+
def get_wiki_link(card):
181+
return f"https://hearthstone.wiki.gg/{quote(card.name)}"
182182

183183

184184
def get_card_image(card, locale):

0 commit comments

Comments
 (0)