Skip to content

Commit

Permalink
Merge pull request #22 from AbhijeetKrishnan/master
Browse files Browse the repository at this point in the history
Add thefuzz for implementing fuzzy string matching when resolving move queries
  • Loading branch information
TLNBS2405 authored Sep 11, 2024
2 parents affe277 + 1d4bb0a commit 0ff1bcf
Show file tree
Hide file tree
Showing 42 changed files with 31,953 additions and 12,685 deletions.
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "heihachi"
version = "2.1.0"
version = "2.2.0"
description = "A Discord bot to receive Tekken 8 frame data primarily from Wavu Wiki"
readme = "README.md"
authors = [
Expand All @@ -20,13 +20,12 @@ classifiers = [
]
requires-python = ">= 3.10"
dependencies = [
"pre-commit",
"mypy",
"discord.py",
"beautifulsoup4",
"Requests",
"lxml",
"fast-autocomplete[levenshtein]"
"fast-autocomplete[levenshtein]",
"thefuzz"
]

[project.urls]
Expand Down
74 changes: 42 additions & 32 deletions src/frame_service/json_directory/tests/static/character_list.json
Original file line number Diff line number Diff line change
@@ -1,162 +1,172 @@
[
{
"name": "alisa",
"portrait": "https://i.imgur.com/5uhzI8W.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/AlisaT8.png",
"page": "https://wavu.wiki/t/Alisa"
},
{
"name": "asuka",
"portrait": "https://i.imgur.com/yl6wb3s.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/AsukaT8.png",
"page": "https://wavu.wiki/t/Asuka"
},
{
"name": "azucena",
"portrait": "https://i.imgur.com/fjMRO7I.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/AzucenaT8.png",
"page": "https://wavu.wiki/t/Azucena"
},
{
"name": "bryan",
"portrait": "https://i.imgur.com/2pZOovW.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/BryanT8.png",
"page": "https://wavu.wiki/t/Bryan"
},
{
"name": "claudio",
"portrait": "https://i.imgur.com/kBtrwM6.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/ClaudioT8.png",
"page": "https://wavu.wiki/t/Claudio"
},
{
"name": "devil_jin",
"portrait": "https://i.imgur.com/Y0pez4V.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/Devil_JinT8.png",
"page": "https://wavu.wiki/t/Devil_Jin"
},
{
"name": "dragunov",
"portrait": "https://i.imgur.com/MZClYKp.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/DragunovT8.png",
"page": "https://wavu.wiki/t/Dragunov"
},
{
"name": "feng",
"portrait": "https://i.imgur.com/kuBCcMo.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/FengT8.png",
"page": "https://wavu.wiki/t/Feng"
},
{
"name": "hwoarang",
"portrait": "https://i.imgur.com/21UCjZ0.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/HwoarangT8.png",
"page": "https://wavu.wiki/t/Hwoarang"
},
{
"name": "jack-8",
"portrait": "https://i.imgur.com/YZgpYIf.png",
"portrait": "https://wavu.wiki/w/images/c/ca/Jack-8T8.png",
"page": "https://wavu.wiki/t/Jack-8"
},
{
"name": "jin",
"portrait": "https://i.imgur.com/ucx6sUa.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/JinT8.png",
"page": "https://wavu.wiki/t/Jin"
},
{
"name": "jun",
"portrait": "https://i.imgur.com/J1nIsFj.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/JunT8.png",
"page": "https://wavu.wiki/t/Jun"
},
{
"name": "kazuya",
"portrait": "https://i.imgur.com/HhPyKVn.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/KazuyaT8.png",
"page": "https://wavu.wiki/t/Kazuya"
},
{
"name": "king",
"portrait": "https://i.imgur.com/rJfQwwz.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/KingT8.png",
"page": "https://wavu.wiki/t/King"
},
{
"name": "kuma",
"portrait": "https://i.imgur.com/HhPyKVn.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/KumaT8.png",
"page": "https://wavu.wiki/t/Kuma"
},
{
"name": "lars",
"portrait": "https://i.imgur.com/gt5tF85.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/LarsT8.png",
"page": "https://wavu.wiki/t/Lars"
},
{
"name": "law",
"portrait": "https://i.imgur.com/GmE9yOG.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/LawT8.png",
"page": "https://wavu.wiki/t/Law"
},
{
"name": "lee",
"portrait": "https://i.imgur.com/ARAtm1t.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/LeeT8.png",
"page": "https://wavu.wiki/t/Lee"
},
{
"name": "leo",
"portrait": "https://i.imgur.com/fAIdWfw.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/LeoT8.png",
"page": "https://wavu.wiki/t/Leo"
},
{
"name": "leroy",
"portrait": "https://i.imgur.com/wUttHKT.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/LeroyT8.png",
"page": "https://wavu.wiki/t/Leroy"
},
{
"name": "lidia",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/LidiaT8.png",
"page": "https://wavu.wiki/t/Lidia"
},
{
"name": "lili",
"portrait": "https://i.imgur.com/UWKqF0v.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/LiliT8.png",
"page": "https://wavu.wiki/t/Lili"
},
{
"name": "nina",
"portrait": "https://i.imgur.com/PAUToyh.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/NinaT8.png",
"page": "https://wavu.wiki/t/Nina"
},
{
"name": "panda",
"portrait": "https://i.imgur.com/IgAKZwR.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/PandaT8.png",
"page": "https://wavu.wiki/t/Panda"
},
{
"name": "paul",
"portrait": "https://i.imgur.com/44jv2IR.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/PaulT8.png",
"page": "https://wavu.wiki/t/Paul"
},
{
"name": "raven",
"portrait": "https://i.imgur.com/r1CYJOr.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/RavenT8.png",
"page": "https://wavu.wiki/t/Raven"
},
{
"name": "reina",
"portrait": "https://i.imgur.com/WaiMf45.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/ReinaT8.png",
"page": "https://wavu.wiki/t/Reina"
},
{
"name": "shaheen",
"portrait": "https://i.imgur.com/Z0uYuBp.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/ShaheenT8.png",
"page": "https://wavu.wiki/t/Shaheen"
},
{
"name": "steve",
"portrait": "https://i.imgur.com/97msjwy.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/SteveT8.png",
"page": "https://wavu.wiki/t/Steve"
},
{
"name": "victor",
"portrait": "https://i.imgur.com/3gXDki2.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/VictorT8.png",
"page": "https://wavu.wiki/t/Victor"
},
{
"name": "xiaoyu",
"portrait": "https://i.imgur.com/tnZ4qby.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/XiaoyuT8.png",
"page": "https://wavu.wiki/t/Xiaoyu"
},
{
"name": "yoshimitsu",
"portrait": "https://i.imgur.com/414HXeL.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/YoshimitsuT8.png",
"page": "https://wavu.wiki/t/Yoshimitsu"
},
{
"name": "zafina",
"portrait": "https://i.imgur.com/36rN3ZO.png",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/ZafinaT8.png",
"page": "https://wavu.wiki/t/Zafina"
},
{
"name": "eddy",
"portrait": "https://wavu.wiki/t/Special:Redirect/file/EddyT8.png",
"page": "https://wavu.wiki/t/Eddy"
}
]
Loading

0 comments on commit 0ff1bcf

Please sign in to comment.