Bugswriter / tuxi

Tuxi is a cli assistant. Get answers of your questions instantly.
GNU General Public License v3.0
1.33k stars 74 forks source link

sport_fixture default behavior should not need to add leagues individually #178

Open zalazarcarlos opened 3 years ago

zalazarcarlos commented 3 years ago

https://github.com/Bugswriter/tuxi/blob/75572b03f7b235d65987ed2972e9fc0c4ff54eaa/tuxi#L616-L625

I tried to find "Independiente next match" (team from Argentine Primera Division) and "lakers next match" didn't work After adding NBA and Argentin* in this list it works

But adding every single league seems wrong Could someone let this new function $sf_use_new (case) as default behavior

Maybe using this as another "search" and keeping the old one if some search need it.

priority=" ........ lyrics_int # Lyrics ( eg: gecgecgec lyrics ) ........ sport_fixture # Shows last or next fixture of a sports team ( eg. Chelsea next game ) //new function as default, no case sport_fixture_old # keep old function until deprecated lyrics_us # Lyrics for US users, above does not work for US "

PureArtistry commented 3 years ago

that could be an option if it works for more stuff than it doesn't.

the problem with it was I only know football and could only test that, somebody else tested it with american football and the format was messed up.

I decided to lock it behind what I knew worked and hoped people would give me more html for other sports so I could update it to make it work for theirs

Thanks for the info that it works fine for basketball though

zalazarcarlos commented 3 years ago

The output it's not perfect, but it works, because you can get day and time for next match, both teams names and league/cup. `` ~/ $ tuxi independiente next match [11:08:14]

Independiente Sun, Mar 28, 21:00 Boca Juniors First phase · Group B · Matchday 7 of 13 VS Argentine Primera División

~/ $ tuxi lakers next match [11:08:24]

New Orleans Pelicans today, 20:30 VS Los Angeles Lakers (18 - 24) NBA

~/ $ tuxi man u next game [11:08:54]

Man United Sun, Apr 4, 15:30 Brighton
VS Premier League ``

feh_002566_000001_snap feh_002631_000001_snap feh_002647_000001_snap