Code Monkey home page Code Monkey logo

wiertarbot's People

Contributors

dependabot[bot] avatar kugo12 avatar michalwelniak1 avatar synnek1337 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

wiertarbot's Issues

Freeze requirements

Hello,

So, what you should do, when are you writing requirements file, is freezing packages (using versions).
For example I have site running on my server, so I freezed packages like this:

Django==3.1.5
django-ckeditor==6.0.0
django-compressor==2.4
django-photologue==3.13
django-recaptcha==2.0.6
django-rosetta==0.9.5
Pillow==8.1.0
psycopg2-binary==2.8.6
sorl-thumbnail==12.7.0
django-tagging==0.5.0

I /highly/ recommend to freeze it. Imagine you didn't paid for server within correct date limit, and you must re-deploy the bot, and because packages versions changed, something broke.

Dodać !download

Dodać komendę !download, po której wkleja się link do np YouTube i łatwo można pobrać z pamięci bota z serwera Szczepana

Dodać milestone'y

Dodać milestone'y przy np 3mln wiadomościach i tak co np 100k czy 250k

Przypominajka

Dodać komendę, która o wybranej godzinie (i dacie) oznaczy użytkownika na grupie/na priv z treścią przypomnienia

Dodać pogodę

Dodać komendę z pogodą, np !pogoda Leszno i wtedy bot pokaże temperaturę, wilgotność i szansę opadów itp

Dodać !unsee

!unsee powoduje usunięcie zdjęcia, które wysyłał bot, które było usunięte i przywrócone komendą !see

Instead of using raw SQL queries, implement Django logic into bot

So, I suggest using Django instead of doing raw queries into SQL database.

Pros:

  • You have access to database via website level.
  • No need for raw queries, all is done via ORM.
  • If you think you can't use Django with async bot you are wrong, because the integration of the async logic is not done at /views/ level, but at writing to the database, what can be done easily in async functions.
  • Integration can be done via other backends than sqlite3 easily just by changing backend in settings.

Cons:

  • Minimal additional overhead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.