#6 pkmn-poll

マージされた
kjswis 6 年 前 に 2 件のコミットが PMD/Polling から PMD/master にマージされました
quedawgfour6 年 前 にコメントしました
まだコンテンツがありません
kjswis6 年 前 にコメントしました
オーナー

Let's use ruby's .each instead of iterating with a integer variable

Should look more like

i = 0
optionsArray.each do |option|
  fields.push({ name: Emoji::LETTERS[i], value: "#{option}\n#{CharAppResponses::INLINE_SPACE}", inline: true })
  i += 1
end

instead of like: for b in 1..a-1 do

Then when you iterate to add reactions, you can say

j = 0
i.times do
  message.react(Emoji::LETTERS[j]
end

Though, for this one you probably can use for b in 0..a do if you really want to

None of this has to be exact, but its cleaner to use ruby's custom for loops for iterations instead of storing a bunch of numbers and iterating

After this is all changed, and rebased, we will also need to add the command description and options

Let's use ruby's `.each` instead of iterating with a integer variable Should look more like ```ruby i = 0 optionsArray.each do |option| fields.push({ name: Emoji::LETTERS[i], value: "#{option}\n#{CharAppResponses::INLINE_SPACE}", inline: true }) i += 1 end ``` instead of like: `for b in 1..a-1 do` Then when you iterate to add reactions, you can say ```ruby j = 0 i.times do message.react(Emoji::LETTERS[j] end ``` Though, for this one you probably can use `for b in 0..a do` if you really want to None of this has to be exact, but its cleaner to use ruby's custom for loops for iterations instead of storing a bunch of numbers and iterating After this is all changed, and rebased, we will also need to add the command description and options
kjswis 6 年 前 に閉じられました
kjswis 6 年 前 に再び開かれました
kjswis 6 年 前 に閉じられました
このプルリクエストは正常にマージされました!
会話に参加するには サインイン してください。
ラベルなし
マイルストーンなし
担当者なし
2 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません