Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Fix rubocop errors (phew)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Mar 14, 2018
1 parent 2f7490a commit be02dc4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions lib/plugins/restart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ module Restart
event << '`pushonly` - Pushes code (must `git add` and `git commit`)'
end
if event.user.id == CONFIG['owner_id']
if CONFIG['os'] == 'Windows'
event.respond 'Restarting not supported on Windows!'
end
event.respond 'Restarting not supported on Windows!' if CONFIG['os'] == 'Windows'
if CONFIG['os'] == ('Mac' || 'Linux')
if task == 'update'
begin
Expand Down
3 changes: 1 addition & 2 deletions lib/plugins/serverinfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ module ServerInfo
extend Discordrb::Commands::CommandContainer

command(%i[sinfo serverinfo]) do |event|

event.channel.send_embed do |e|
e.title = "Server Information"
e.title = 'Server Information'

e.add_field(name: 'Server Name:', value: event.server.name, inline: true)
e.add_field(name: 'Server ID:', value: event.server.id, inline: true)
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Stats
dd, hh = hh.divmod(24)

event.channel.send_embed do |e|
e.title = "Chewbotcca - A basic, yet functioning, discord bot"
e.title = 'Chewbotcca - A basic, yet functioning, discord bot'

e.add_field(name: 'Author', value: "Chew#0001\n[116013677060161545]", inline: true)
e.add_field(name: 'Code', value: '<http://github.com/Chewbotcca/Discord>', inline: true)
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/userinfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module UserInfo

command(%i[uinfo userinfo]) do |event|
event.channel.send_embed do |e|
e.title = "User Info for you!"
e.title = 'User Info for you!'
e.thumbnail = { url: "https://cdn.discordapp.com/avatars/#{event.user.id}/#{event.user.avatar_id}.webp?size=1024".to_s }

e.add_field(name: 'Name#Discrim', value: "#{event.user.name}\##{event.user.discrim}", inline: true)
Expand Down

0 comments on commit be02dc4

Please sign in to comment.