Skip to content

Auto-Reply Functionality for Unformatted Code #167

Open
@togakangaroo

Description

@togakangaroo

Problem:

We tend to have people posting often who don't know the three main ways to format code on slack. A bot to help them do this properly would save everyone some time and annoyance. Plus it should be fun to code.

This bot will activate when there is a post where a subset of the lines contains something that looks like code but is not formatted as such

So how to determine if something looks like code? Two possible approaches.

  1. Heuristically. There are libraries out there that auto-detect language. Presumably some of the same processes can be used to detect whether something is code at all. Example of something that does this: highlight.js

  2. ML. This is actually a pretty decent use case for something like a tensorflow classifier. And we could train it off of the actual operation code logs!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feedback: discussionActive discussion is happening to scope this issue, set acceptance criteria, or decide to accept itpriority: lowThis is an issue that is fine sitting for a whileproject: rewriteThis issue applies to the rewrite of Pybotstatus: awaiting acceptanceIssue has not been accepted - it may need documentation, discussion, or a decision - the ice boxtype: code changeIssue requires changes to the code basetype: documentationIssue requires a change to the current documentation of the codebase or producttype: featureIssue involves adding new functionality that doesn't currently exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions