• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kn-lim / dreamingway-bot / 12593784322

03 Jan 2025 06:30AM UTC coverage: 0.0% (-22.8%) from 22.759%
12593784322

Pull #5

github

web-flow
Merge 4d7e57259 into 311f96742
Pull Request #5: Refactor

0 of 112 new or added lines in 6 files covered. (0.0%)

0 of 112 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/dreamingway/commands/roll.go
1
package commands
2

3
import (
4
        "fmt"
5

6
        "github.com/bwmarrin/discordgo"
7

8
        "github.com/kn-lim/chattingway/gamble"
9
)
10

NEW
11
func roll(i *discordgo.Interaction) (string, error) {
×
NEW
12
        input := i.ApplicationCommandData().Options[0].StringValue()
×
NEW
13
        output, value, err := gamble.Roll(input)
×
NEW
14
        if err != nil {
×
NEW
15
                return "", err
×
NEW
16
        }
×
17

NEW
18
        return fmt.Sprintf("%s = **%d**", output, value), nil
×
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc