<commit_before>#!/usr/bin/perl

use strict;
use warnings;

package DMBot;
use base qw(Bot::BasicBot);

my $dm = DMBot->new(
    server      =>  "",
    port        =>  "",
    channels    =>  ["#DND"],
    
    nick        =>  "DMBot",
    alt_nicks   =>  ["The_Real_DMBot"],
    username    =>  "DMBot",
    name        =>  "D&D DM Bot",

    ignore_list =>  [qw(RepBot ChanServ)],
);

sub said {
    my ($self, $message) = @_;
    if ($message->{body} =~ /^!roll[\s]+(\d+)?d(\d+)/){
        my $numDice = defined $1 ? $numDice = int($1) : 1;<commit_msg>Fixed ternary issue<commit_after>#!/usr/bin/perl

use strict;
use warnings;

package DMBot;
use base qw(Bot::BasicBot);

my $dm = DMBot->new(
    server      =>  "",
    port        =>  "",
    channels    =>  ["#DND"],
    
    nick        =>  "DMBot",
    alt_nicks   =>  ["The_Real_DMBot"],
    username    =>  "DMBot",
    name        =>  "D&D DM Bot",

    ignore_list =>  [qw(RepBot ChanServ)],
);

sub said {
    my ($self, $message) = @_;
    if ($message->{body} =~ /^!roll[\s]+(\d+)?d(\d+)/){
        my $numDice = (defined $1) ? int($1) : 1;
{'fraction_non_alphanumeric': 0.21318879855465223, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 2.174785100286533, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 0, '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': '1098707', 'n_tokens_mistral': 456, 'n_tokens_neox': 439, 'n_words': 90}