<commit_before># -*- coding: utf-8 -*-
from slackbot.bot import Bot, respond_to, listen_to
import re
import json
from coinone import *


@respond_to('.*')
def help(message):
    message.reply("What?")
    # message.reply("못알아먹겠소")


@respond_to('github', re.IGNORECASE)
def github(message):
    attachments = [{
        'fallback': '깃허브',
        'author_name': '9to6',
        'author_link': 'https://github.com/9to6',
        'text': '이 사이트 말씀하신건가요?\nhttps://github.com/9to6',
        'color': '#59afe1'
    }]
    message.reply_webapi('혹시 이거?', json.dumps(attachments))

@respond_to('btc', re.IGNORECASE)
def xrp(message):
    attachments = SlackResponder.currency("btc")
    message.reply_webapi('', json.dumps(attachments))

@respond_to('eth', re.IGNORECASE)
def xrp(message):
    attachments = SlackResponder.currency("eth")<commit_msg>Add help command<commit_after># -*- coding: utf-8 -*-
from slackbot.bot import Bot, respond_to
import re
import json
from coinone import *


@respond_to('.*')
def help(message):
    message.reply(("avaliable command list:\n"
                  "*btc*, *eth*, *etc*, *xrp*"))
    # message.reply("못알아먹겠소")


@respond_to('github', re.IGNORECASE)
def github(message):
    attachments = [{
        'fallback': '깃허브',
        'author_name': '9to6',
        'author_link': 'https://github.com/9to6',
        'text': '이 사이트 말씀하신건가요?\nhttps://github.com/9to6',
        'color': '#59afe1'
    }]
    message.reply_webapi('혹시 이거?', json.dumps(attachments))

@respond_to('btc', re.IGNORECASE)
def xrp(message):
    attachments = SlackResponder.currency("btc")
    message.reply_webapi('', json.dumps(attachments))

@respond_to('eth', re.IGNORECASE)
def xrp(message):
    attachments = SlackResponder.currency("eth")
{'fraction_non_alphanumeric': 0.17593123209169054, 'fraction_numerical': 0.011461318051575931, 'mean_word_length': 3.809917355371901, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '556071', 'n_tokens_mistral': 689, 'n_tokens_neox': 699, 'n_words': 116}