Giter Site home page Giter Site logo

yahu1031 / flutterbot Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 5.0 201 KB

A discord bot which helps in providing all the data about flutter objects/packages/widgets the user needs on his/her commands.

License: MIT License

Dockerfile 2.06% Makefile 1.93% Dart 95.90% Procfile 0.11%
bot discord-bot pub flutterfire flutter dart discord

flutterbot's Introduction

Mr.Minnu

Here are some ideas to get you started:

  • ๐Ÿ”ญ Iโ€™m currently working on Serverpod.
  • ๐ŸŒฑ Iโ€™m currently learning To say NO.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on What ever you would like to.
  • ๐Ÿค” Iโ€™m looking for help with Developing VS Code extensions.
  • ๐Ÿ’ฌ Ask me about Flutter
  • ๐Ÿ“ซ How to reach me: May be in Twitter
  • ๐Ÿ˜„ Pronouns: He/Him
  • โšก Fun fact: Pineapple pizza is called Hawaiian pizza before it was named Pineapple pizza

flutterbot's People

Stargazers

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

Watchers

 avatar

flutterbot's Issues

Bot Build success but not deployed

The bot code was built successfully but not deployed in server.

Stack logs

2020-10-16T00:54:12.000000+00:00 app[api]: Build started by user [email protected]
2020-10-16T00:54:27.598654+00:00 app[api]: Deploy 8723a1a6 by user [email protected]
2020-10-16T00:54:27.598654+00:00 app[api]: Release v7 created by user [email protected]
2020-10-16T00:54:28.000000+00:00 app[api]: Build succeeded
2020-10-16T00:54:33.995866+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=flutterdocsbot.herokuapp.com request_id=264f1708-2d81-4bf6-a664-c074d6e569cd fwd="43.250.41.3" dyno= connect= service= status=503 bytes= protocol=https

Embed cannot contain more than 25 fields

If the fields count is more than 25, the bot fails and restarts.

2021-11-30T19:45:20.484835+00:00 app[worker.1]: Unhandled exception:
2021-11-30T19:45:20.484844+00:00 app[worker.1]: EmbedBuilderArgumentException: Embed cannot contain more than 25 fields
2021-11-30T19:45:20.484845+00:00 app[worker.1]: #0      EmbedBuilder.build (package:nyxx/src/utils/builders/EmbedBuilder.dart:128:7)
2021-11-30T19:45:20.484845+00:00 app[worker.1]: #1      MessageBuilder.build (package:nyxx/src/utils/builders/MessageBuilder.dart:160:67)
2021-11-30T19:45:20.484846+00:00 app[worker.1]: #2      ComponentMessageBuilder.build (package:nyxx_interactions/src/builders/ComponentBuilder.dart:219:14)
2021-11-30T19:45:20.484846+00:00 app[worker.1]: #3      _HttpEndpoints.sendMessage (package:nyxx/src/internal/_HttpEndpoints.dart:1096:25)
2021-11-30T19:45:20.484847+00:00 app[worker.1]: #4      CacheableTextChannel.sendMessage (package:nyxx/src/core/channel/TextChannel.dart:45:33)
2021-11-30T19:45:20.484847+00:00 app[worker.1]: #5      MessageNotifier.onMsgEvent.<anonymous closure> (file:///app/src/notifiers/on_msg.notifier.dart:156:43)
2021-11-30T19:45:20.484847+00:00 app[worker.1]: <asynchronous suspension>

If pub data is less than 10, catches the error "Cannot read property 'package' of undefined"

When the data of the search is less than 10 as per the code pub.js line: 37, the try catches error Cannot read property 'package' of undefined. Better change the 10 into data.packages.length. And this code can be removed

if (data.packages.length == 1) {
    return message.channel.send(new Discord.MessageEmbed()
        .setColor('#2ECC71')
        .setTitle(`packages for search query ${args[0]}`)
        .addFields({
            name: data.packages[0].package,
            value: `https://pub.dev/packages/${data.packages[0].package}`
        }))
};

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.