Giter Club home page Giter Club logo

catbot's Introduction

Welcome to Kotlin developer page

val y9san9 by developer {
    fullName = "Alexander Sokolinskiy"
    displayName = "Aλex Sokol"
    age = 0x13

    contacts {
        telegram(username = "@y9san9")
        instagram(username = "@y9san9")
        email(address = "[email protected]")
    }
}

Contact me

About

More information about me and my skills you can find here

catbot's People

Contributors

y9san9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

catbot's Issues

Bot stops when was blocked

Exception occurred: dev.inmo.tgbotapi.bot.exceptions.CommonRequestException: Can't get result object from {"ok":false,"error_code":403,"description":"Forbidden: bot was blocked by the user"}
at dev.inmo.tgbotapi.bot.exceptions.RequestExceptionKt.newRequestException(RequestException.kt:36)
at dev.inmo.tgbotapi.bot.exceptions.RequestExceptionKt.newRequestException$default(RequestException.kt:8)
at dev.inmo.tgbotapi.bot.Ktor.KtorRequestsExecutor$execute$2.invokeSuspend(KtorRequestsExecutor.kt:81)
at dev.inmo.tgbotapi.bot.Ktor.KtorRequestsExecutor$execute$2.invoke(KtorRequestsExecutor.kt)
at dev.inmo.tgbotapi.bot.Ktor.KtorRequestsExecutor$execute$2.invoke(KtorRequestsExecutor.kt)
at dev.inmo.tgbotapi.bot.Ktor.KtorRequestsExecutor.execute(KtorRequestsExecutor.kt:119)
at dev.inmo.tgbotapi.bot.Ktor.KtorRequestsExecutor$execute$1.invokeSuspend(KtorRequestsExecutor.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$resumeRootWith(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:89)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$resumeRootWith(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:89)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$resumeRootWith(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:89)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Simplify architecture

The one is now is really complex to maintain, but it is standalone from framework. The goal of this issue is to save this sandalonity, but make the architecture easier.

Init bot

  • Add deploy task
  • Add the main method and telegram bot initializing

Close after: #1

Add new member trigger

When a new member joined, the bot should send a gif with cat-captcha and text (currently in Russian). If the member won't reply for 5 minutes, the bot should kick them.

Close after: #2, #3

Nyancat command

I suggest to make a separate command /nyan used to send nyancat gif
Picture

Gifs caching

It would nice to have background actor that will download 10 gifs for example and then just using it in responses

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.