PDA

Просмотр полной версии : ShopNotifier | Web Panel for Arizona RP traders


xSkateboard
25.02.2022, 01:58
This is a web panel with a plug-in for the Arizona RP server (GTA:SAMP), which helps to trade on the local market and analyze all monetary transactions.

The LUA script itself is called ShopNotifier.lua (https://github.com/qskateboard/shopNotifier/blob/master/project/static/ShopNotifier.lua), in which you need to set the domain of the web panel in order for the client and server to be connected.

It is also necessary to place a token for the telegram bot in the code in order for alerts to work (Yes, I did not take it out separately in the settings, because it was a test project that was quickly abandoned due to irrelevance)

git: https://github.com/qskateboard/shopNotifier

https://camo.githubusercontent.com/efab7fc4d742d7243f4eaa1b09fcc5465f60fdde072c83fd8a a1f65726e97008/68747470733a2f2f73756e392d36332e757365726170692e63 6f6d2f696d70672f48694e3643447350736c5355524e765a41 2d61395737674261366a6e30576d615579335843512f333968 63316a42437137492e6a70673f73697a653d31373136783836 33267175616c6974793d3936267369676e3d64643363343034 65356665383262613433376635346332653034363939366231 26747970653d616c62756d

chapo
25.02.2022, 18:21
заливать скрипт на гитхаб не лучшая идея

https://forum.antichat.xyz/attachments/27984747/img_20459a0c45.png

xSkateboard
25.02.2022, 18:38
заливать скрипт на гитхаб не лучшая идея


Луа скрипт там играет самую последнюю роль. Всё лежит на плечах бэкэнда и flask. Данные можно импортировать через sqlite3 например или запросами к REST API

chapo
25.02.2022, 18:43
Луа скрипт там играет самую последнюю роль. Всё лежит на плечах бэкэнда и flask. Данные можно импортировать через sqlite3 например или запросами к REST API


я не смотрел как у тебя все работает, просто имел ввиду что регулярка не сработает, так как в файле на гитхабе кодировка вроде бы UTF-8